Results 1 to 4 of 4
-
05-15-2002, 12:09 AM #1Web Hosting Master
- Join Date
- May 2001
- Posts
- 1,593
What is a simple command to email?
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
-
05-15-2002, 12:15 AM #2WHT Addict
- Join Date
- Apr 2002
- Posts
- 165
???
/usr/sbin/sendmail -v admin@yourdomain < /yourfile.?
or
/bin/echo 'your message' | /bin/mail -s subject admin@yourdomain
any use?
-
05-15-2002, 12:15 AM #3Web Hosting Master
- Join Date
- Nov 2001
- Location
- California
- Posts
- 1,991
Nevermind!
-
05-15-2002, 06:05 PM #4Web Hosting Master
- Join Date
- May 2001
- Posts
- 1,593
Thanks, I should have though of the pipe.
Peter