9
3
I'm running dtruss
on Mac OS X 10.9. Simple example is:
sudo -c ls
But I'd like to capture the dtruss
output into a file. I saw something that suggests that I can do something like:
sudo bash -c 'dtruss -c ls >x'
but when I do this the output of dtruss
still goes to the terminal and the list of file from ls
gets redirected to the file.
How can I redirect the output of dtruss
to a file?
1
dtruss probably writes to
– Nifle – 2014-07-08T15:05:47.690stderr
instead ofstdout
witch is what>x
captures. This questions explains what to do: Linux less behavior and stderr