I'm trying to run strace
trough ccze
, and the pipe doesn't work as expected.
The command-line I'm running to test is sudo strace -p $(pgrep apache2) | grep open
, and all lines are output, ignoring grep.
Is there something special about strace
that causes this behavior?
open
calls, I just put that as an example, what I'm really trying to do is color highlighting – Andrei Sep 15 '12 at 00:03strace: Invalid process id: '-e'
with the last command.I am on version 4.8. 2010-03-30.
– Elijah Lynn Jun 29 '17 at 19:13apache2
by the name of the process you're interested in. Check thatpgrep
prints a single PID, otherwise pick one and run e.g.sudo strace -p 1234 -e open
– Gilles 'SO- stop being evil' Jun 29 '17 at 20:34vim
color syntax highlighting?strace $CMD 2>&1 > /dev/null | vim -c ':set syntax=strace' -
. – Pablo A Aug 27 '17 at 14:49