strace $(pgrep httpd | awk '{ print "-p " $1 }' | tr '\n' ' ')
(it's left as exercise to the reader to understand what it does) if you want to save the output and the play with it, just add '-o <file>'.
Welcome, new handy tool!
A blog about things I do: Debian, Linux, Python, whatever
strace $(pgrep httpd | awk '{ print "-p " $1 }' | tr '\n' ' ')