[Cialug] Having a "this should work" moment

Dave Weis djweis at internetsolver.com
Thu Oct 1 16:26:44 CDT 2009


It's probably writing to stderr instead of stdout. You need to change 
the last > smb.log to 2>&1 smblog.txt I believe

Tim Champion wrote:
> I have the following line in a backup script:
> cat smb.actions | smbclient //192.168.0.100/micads 
> <http://192.168.0.100/micads> -A /root/backups/smb.connect > smb.log
> 
> Everything works wonderfully, except that the output is still going to 
> the screen instead of smb.log. It will "touch" the file smb.log and make 
> it have a new timestamp, but the file is empty.
> 
> Tim Champion
> timchampion at gmail.com <mailto:timchampion at gmail.com>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug




-- 
Dave Weis
515-224-9229
djweis at internetsolver.com
http://www.internetsolver.com/
Please check out our Complete Support Service 
http://www.internetsolver.com/completesupport/


More information about the Cialug mailing list