commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This version also attaches to new processes forked by the parent apache process. That way you can trace all current and *future* apache processes.
There are 16 alternatives - vote for the best!
This one-liner will use strace to attach to all of the currently running apache processes output and piped from the initial "ps auxw" command into some awk.
Like the original version except it does not include the parent apache process or the grep process and adds "sudo" so it can be run by user.
Will open strace on all apache process, on systems using sbin/apache (debian) or sbin/httpd (redhat), and will follow threads newly created.
If you can do better, submit your command here.
You must be signed in to comment.