Unix Shell - How can I fork output to log file and standard out?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2005 > How can I fork output to log file and standard out?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I fork output to log file and standard out?
colonel

2005-02-24, 5:58 pm

How would I go about sending output to a logfile and also to standard
out?

I have:

xxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxxxx > ${LOG} 2>&1

but I need to see the output as well. Is there a way to fork it?

Thanks


Ed Morton

2005-02-24, 5:58 pm



colonel wrote:

> How would I go about sending output to a logfile and also to standard
> out?
>
> I have:
>
> xxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxxxx > ${LOG} 2>&1
>
> but I need to see the output as well. Is there a way to fork it?


man tee

Ed.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com