Outputting to console and file
Tom H
tomh0665 at gmail.com
Wed Mar 2 10:49:21 UTC 2011
On Wed, Mar 2, 2011 at 5:46 AM, Oliver Marshall
<Oliver.Marshall at g2support.com> wrote:
>
> 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 ?
tee
More information about the ubuntu-users
mailing list