Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I have created one shell script which giving information about disk space and out put automatically mailed to respective person but script is working with in the domain I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    24

    How to send mail to live network


    Hi I have created one shell script which giving information about
    disk space and out put automatically mailed to respective person
    but script is working with in the domain I need to send mail on live network so please help me


    this is the script:
    #!/bin/sh
    /bin/df -k > /home/mahesh/test.txt
    /bin/mail -s disk_space mahesh@xyz < /home/mahesh/test.txt

    and I applied cron job which is working fine and I am getting mail correctly now I need to receive mail on my company account instead of
    Internally domain help me .

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401

    Sendmail?

    Logically you should configure a mail server... you bash script will supply the mail to you mail server (wich must be connected to internet), and it will send the forward the email for you...

    Configure sendmail isn't a joke, and I've never tried... but my friend you it for pooling mail, and the server can connect to internet send all mails to your provider...

    Investigate on it.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

Posting Permissions

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