Koozali.org: home of the SME Server

Command line question

J Price

Command line question
« on: April 16, 2003, 04:21:47 AM »
I am trying to get a script to output its results to both the console and a log file simultaneously.  But, I cannot figure out the comman line syntax to do it.

i.e.

# ./script > /dev/console

# ./sciprt > /var/log/script.log

How can you do this at the same time.

Anyone know?

Thanks

-James

J Price

Re: Command line question
« Reply #1 on: April 16, 2003, 05:11:07 AM »
Nevermind..I found it.

command | tee filename

-James