[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Capturing STDERR in ksh.



Paul Sullivan wrote:

> I've been having issues capturing STDERR via ksh through the rpm binary.
>
> i.e. rpm --checksig example.rpm 2>&1 >/dev/null
>
> The above example will still display errors to STDERR. I've noticed that
> in tcsh and bash, it does properly capture.  Is this korn shell or rpm's
> issue?  Any ideas?

The re-directions are processed in order; put "2>&1" last

William





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []