Unix Shell - log file in tcsh

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2005 > log file in tcsh





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 log file in tcsh
Christopher W Aiken

2005-10-25, 5:53 pm

I was looking at a bash script and I saw the following line:

exec >& update.log

This line apparently sends all following output to a file
called update.log. Is there such a command or way to do
this from within a tcsh script?


--
-=[cwa]=-
e-Mail: chris at cwaiken dot net
Home: www.cwaiken.net



Michael Tosch

2005-10-25, 5:53 pm

Christopher W Aiken wrote:
> I was looking at a bash script and I saw the following line:
>
> exec >& update.log
>
> This line apparently sends all following output to a file
> called update.log. Is there such a command or way to do
> this from within a tcsh script?
>
>


tcsh does not this, nor command blocks that span over
multiple lines.
So you must use a one-line block:

(command1; command2; command3) >& update.log

--
Michael Tosch @ hp : com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com