
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] stdin/stderr redirection under Solaris
- Date: Wed, 25 Aug 2004 00:40:30 -0700 (PDT)
- From: Gerald Naughton <naughton123@example.com>
- Subject: Re: [tlug] stdin/stderr redirection under Solaris
Hi
--- Jean-Christian Imbeault
<jean-christian.imbeault@example.com> wrote:
> Sorry since this is not a Linux only question, but
> I've been having a
> hell of a time trying to figure out how to redirect
> stdout and stderr
> separately under Solaris (in any shell).
>
> Can this be done in Solaris?
>
> pipe the stdout of a program to prog1 while piping
> the stderr to prog2
> and put the process in the background?
>
> Something like:
>
> $ nohup prog.sh 1> | /usr/local/sbin/cronolog
> logs/%Y/%m/%d/error.log 2>
> | /usr/local/sbin/cronolog logs/%Y/%m/%d/error.log &
>
> Thanks,
>
> Jc
Try bash
cmd > file 2>&1
g
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
Home |
Main Index |
Thread Index