tee and some commands
Leo "TheHobbit" Cacciari
leothehobbit at gmail.com
Tue Mar 22 12:55:26 UTC 2011
> Hi chaps
>
>
>
> Anyone noticed that tee doesn't seem to log the output from some
> commands to a log file?
>
>
>
> I am using tee in a script on the following line;
>
> ncftpput -u $ftp_user -p $ftp_pass -R -m -v ftp.mydomain.local /
> $dest/\archives/$1/ | tee -a $out_file
>
>
>
> Instead of logging to a log file via tee it now outputs two copies of
> the FTP output to the console and nothing to the log file.
>
>
>
> Is there a way I can work around that or is it a limitation in the
> ncftpput command do you think?
>
>
>
> Olly
>
>
>
Hi,
This could depends from $out_file being equal to "-", then accordingly
to tee documention, the output file is also stdout, thus achieving a
duplication of output.
--
Leo "TheHobbit" Cacciari
Aliae nationes servitutem pati possunt populi romani est propria libertas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110322/4b76204a/attachment.html>
More information about the ubuntu-users
mailing list