Outputting to console and file

Oliver Marshall Oliver.Marshall at g2support.com
Wed Mar 2 10:46:16 UTC 2011


Hi,

We have a script that archives specified SVN repos, rars them up, uploads them to an FTP site, then removes the original. Currently all the output goes to the console as it runs but as the output can get large I'm keen to log the output to a file AND the console at once.

I can pipe the script to a file but then I get no console output.

Within the file is there a way to send the output of each line to both the console and a file ?

Olly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110302/000e129c/attachment.html>


More information about the ubuntu-users mailing list