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:
1) Systems that send out alert emails when errors, database locks, etc occur.
2) a system that:
a) has the ability to receive emails, and has procmail installed.
b) has ssh keys set up to machines that would send out alerts.
When procmail receives alert email, you can issue a command like this one (greps and awks may very - you're isolating the remote hostname that had the issue).
This will pull process trees from the alerting machines, which is always useful in later analysis.
There are 2 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.