If, like me, you use tcsh rather than bash, then you do:

    ( your_command > logfile ) >& /tmp/err

BTW, I always send ephemeral data to /tmp. And then, I have a boot-time
shell script wipe /tmp (and /var/tmp) clean at every boot up.

- Manas Laha

Arup Kanjilal wrote:
> 
> Standard method for redirecting stdout and stderr to a
> file is :
> 
> your_command > logfile 2>&1
> 
> --- Tathagata Banerjee <[EMAIL PROTECTED]> wrote:
> > friends,
> > i can redirect normal output with the > and the >>
> > operators. but how does
> > one redirect abnormal output, e.g. error messages
> > etc. ? i need this for
> > sending debugging info to experts.
> > thanks.


Standard method for redirecting stdout and stderr to a
file is :

your_command > logfile 2>&1


--- Tathagata Banerjee <[EMAIL PROTECTED]> wrote:
> friends,
> i can redirect normal output with the > and the >>
> operators. but how does
> one redirect abnormal output, e.g. error messages
> etc. ? i need this for
> sending debugging info to experts.
> thanks.
> 
> 
> --
> To unsubscribe, send mail to [EMAIL PROTECTED]
> with the body
> "unsubscribe ilug-cal" and an empty subject line.
> FAQ: http://www.ilug-cal.org/help/faq_list.html


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html


Reply via email to