Tuesday, August 9, 2011

Dump an strace log to a file

I wanted to strace a php backend to see if the X-LIGHTTPD-send-file header (and feature) of Lighttpd was actually working, so I could see the backend doing some read operations or not and prove that the php was not in fact the process sending the file.

This was not necessary at all, but I just wanted to confirm php REALLY not having anything to do with the downloads.

So I started strace with the PID of the backend and saved the log to see those open() and read() operations

strace -Ff -tt -p PID 2>&1 | tee strace.log

And that was pretty much it ;-)

No comments:

Followers

About me

Santa Fe, Argentina
Programador Web, PHP, MySQL, JQuery, Administrador Linux. LAMP, Lighttpd, Nginx.