Computing.Net > Forums > Linux > Linux Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux Script

Reply to Message Icon

Name: Darren22
Date: March 4, 2009 at 04:36:25 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi i wanna write a script which will do checks on my system example "rcpostfix status" and output this infomation to a email. I want to be able to send this email to my address.



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: March 4, 2009 at 12:50:24 Pacific
Reply:

#!/bin/sh
# Send Postfix status to username@domainname.com
#
rcpostfix status | sendmail -f sendername@senderdomain.com recipientname@recipientdomain.com
exit 0

Please send a reply, if you solved the problem !!!


-1
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux Script

Linux Script www.computing.net/answers/linux/linux-script/20196.html

DOS to Linux Script conversion www.computing.net/answers/linux/dos-to-linux-script-conversion/22056.html

Linux Scripting variables www.computing.net/answers/linux/linux-scripting-variables/19210.html