Most Nerd-Its | Nerd Trends | Recent

  1. RE: Prime the Pump in Do you vote on your own OmniNerd content?
  2. Prime the Pump in Do you vote on your own OmniNerd content?
  3. RE: IPv6 and NAT boxes in Naming and Overlay Architectures
  4. Can't debug Network/Transport?? in Measurement and Tracing
  5. RE: Bizarro World in Ten Silver Linings for Conservatives
  6. RE: Bizarro World in Ten Silver Linings for Conservatives
  7. Yay! in Architectural CAD Drawing, Paper to CAD Conversion, HVAC Drafting, HVAC Duct Design, Paper sketch to Cad Drawing, CAD Design Services, PDF to CAD Conversion.
  8. I am definitely in your cult in Martha Stewart's Everyday Food Magazine Recipe Index
  9. RE: Bizarro World in Ten Silver Linings for Conservatives
  10. Bizarro World in Ten Silver Linings for Conservatives

What is OmniNerd?

Welcome! OmniNerd's content is generated by you, the reader. Through voting and moderation we strive to highlight the nerdiest of what's around and provide content that's a little more thought provoking than other sites.

Submit New Content

Voting Booth

Do you vote on your own OmniNerd content?

16 votes, 10 comments
+ -

Linux Command - A Practical Reference

Link

link by markmcb on 07 July 2008, tagged as linux and scripting

I was looking around the net for an example of a notification script to send me email reports about a server I have and stumbled upon this reference. Very handy.

Star This to Save in Your Profile Favorite
Thread parent sort order:
Highest Voted : Lowest Voted : Oldest : Newest
Thread verbosity:
Expand All : Minimize Replies to Comments
3 Nerd-Its - +
Alternative to mail by wyldeling :: NR6

[[www.linux.com Linux.com]] has an article sending complex emails from the cmd line (or, scripts) using an alternative to mail: email. I don't know how well it works. Personally, I've just used mail directly in scripts.

In bash, I set up the fcn:

function msg {

# the -s switch in mail specifies that the 1st arg passed to it is the subject
# Alternatively, the email address could be specified as another fcn param
mail -s "${1}"  someone@example.com << EOM
${2}
EOM
}

which I use to notify me of errors and when calculations complete.