Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

Re: Redirecting the !#$%^& output from STDIN and STDERR to a file...

csd@netbox.com
Thu, 6 Aug 1998 15:36:42 -0700 (PDT)

> I am trying to run CDRECORD on WAV files which
> have been generated by L3DEC. Unfortunately this
> process ends in a series of error messages which are
> printed to the screen, NOT to a file, which is where they
> should be sent if CDRECORD had a clue... Can anyone
> tell me how to intercept output to STDOUT and STDERR
> and dump it into one and the same file?
>
> - exasperated
>
depends on your shell.
for ksh,sh,bash:
$ cdrecord >outputfile 2>&1

for csh:
% cdrecord >& outputfile

that should do it.