Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to email from within a shellscript?

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
How can I have my script email me once it has completed it's tasks?
I would like to have the structure so that I may have a subject, and message in that email from the script. Rninja

smlogo.gif

 
mailx -s 'My Subject' user@some.where.com < file_to_email Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top