Results 1 to 4 of 4
  1. #1
    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

  2. #2
    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?

  3. #3
    Join Date
    Nov 2001
    Location
    California
    Posts
    1,991
    Nevermind!

  4. #4
    Join Date
    May 2001
    Posts
    1,593
    Thanks, I should have though of the pipe.

    Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •