baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: sindi keesan <keesan AT sdf.lonestar.org>
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Realplayer8 segmentation faults
- Date: Fri, 1 Oct 2004 16:15:07 +0000 (UTC)
Thank you Steven and Ian for explaining how to use script or > to save the output of strace realplay. I will try this soon but since I don't know how to interpret the output this will not get me very far. (I am in BL3 and strace and realplay are in BL2).
I was creating this sort of output when compiling lynx with help from Doug Kaufmann and never quite figured out what was going on. I would send him the log files and be told what to do next (in my screwed-up system where we ended up compiling statically in order to make it work in the original BL2 even though I had updated glibc). The error messages were not quite as cryptic there.
On Fri, 1 Oct 2004, Ian Scott wrote:
What you want here is the magic of shell redirection.
Can you explain how to save the strace output to a file? Nobody replied
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.
_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux
keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
-
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.