Web Hosting Talk







View Full Version : What is a simple command to email?


ckpeter
05-15-2002, 12:09 AM
I am wondering what simple email command is available on redhat 7.2 that will send an email. I tried sendmail and one other command(forgot the name), and they both are interactive. I am looking to setup one so that the system would email me each time it boots up. (thus it can not be interactive mailer).

Thanks,

Peter

Gadgy
05-15-2002, 12:15 AM
???

/usr/sbin/sendmail -v admin@yourdomain < /yourfile.?

or

/bin/echo 'your message' | /bin/mail -s subject admin@yourdomain

any use?

iamdave
05-15-2002, 12:15 AM
Nevermind!

ckpeter
05-15-2002, 06:05 PM
Thanks, I should have though of the pipe.

Peter