Shell : quick newb question - redirecting to file

Colin Watson cjwatson at ubuntu.com
Tue Jul 12 11:17:27 UTC 2005


On Tue, Jul 12, 2005 at 01:04:16PM +0200, Vincent Trouilliez wrote:
> I am trying to use strace and ltrace to see what Yelp is doing when
> loading the home page, i the hope that I might find a clue in there.
> 
> I tried this command : "strace yelp > ~/yelp.strace "

strace outputs to stderr rather than stdout, so you need to use 2>
rather than > if you want to take the redirection approach.

However, strace has a perfectly good option for sending its output to a
file, so just use that (that way you don't mix up the trace with any
error output from the program itself):

  strace -o ~/yelp.strace yelp

Cheers,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list