baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: Ian Scott <mriscott AT yahoo.co.uk>
- To: jamtat AT mailsnare.net
- Cc: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Realplayer8 segmentation faults
- Date: Fri, 1 Oct 2004 05:25:28 -0400 (EDT)
>
> > Can you explain how to save the strace output to a file? Nobody replied
>
What you want here is the magic of shell redirection.
You can redirect whatever goes to the console using the > character:
somecommand > log.txt
Will write the normal output of the command into the log.txt file.
However, to make it more confusing, the output to the console contains not
only
normal output, but also error output. To redirect this too, use
somecommand 2>&1 >log.txt
An explaination for the curious.
The normal output is stream 1, the error is stream 2.
somecommand > file or somecommand 1>file
will redirect the normal output into the file
somecommand 2>file
will redirect the error outpuf in the file
somecommand 2>&1
Will redirect the eror output into the normal output
so
somecommand 2>&1 > file
redirects both into the file.
N.B. The ordering of the lines may not be quite the same as you see on the
console, as the error and output streams may be buffered.
-
Re: [BL] Realplayer8 segmentation faults,
Ian Scott, 10/01/2004
- Re: [BL] Realplayer8 segmentation faults, sindi keesan, 10/01/2004
Archive powered by MHonArc 2.6.24.