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:46:32 -0700 (PDT)
> "Ya`akov N. Miles" <ynmiles@ibm.net> writes:
>
> > 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?
>
> With bash, 'whatever_binary 2>&1 > file_for_output'
>
It has to be the other way around (first redirect stdout, then stderr to
stdout):
'whatever_binary > file_for_output 2>&1'