UDEV

Chris Jones jonesc at hep.phy.cam.ac.uk
Thu Aug 2 20:01:11 UTC 2007


> 	I used strace -o gm.txt gmfsk | grep xxxx but the grep did not work but
> I got the whole mess saved in gm.txt now. But Nigel had a better idea
> and his works...

Hmm, well in this case you are redirecting the strace output to file, so the 
grep command has nothing to work from from the pipe. ! 

Either

> strace -o gm.txt gmfsk
> grep xxx gm.txt 

or as I said in a previous post

 >  strace gmfsk 2>&1 | grep xxx

here, the 2>&1 redirects the stderr to stdout, so it is then seen by the pipe 
(|) and grep commands

Chris




More information about the users mailing list