Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    23

    Send a email with report once in monthly

    HI,

    I do have Progress Database. I do run analasys report every sunday. But I have to send a email from shell script every month one resport.(last weeks report as monthly report. I tried this

    But didn't work

    #/usr/bin/mail -s "TESTING" PROGDBA@company.org < report.txt
    #!/bin/bash
    SUBJECT="Automated TEST"
    TO="PROGDBA@company.org "
    MESSAGE="/home/33534/report.txt"

    echo "test added!" >> $MESSAGE
    echo "Time: `date`" >> $MESSAGE

    /usr/bin/mail -s "$SUBJECT" "$TO" < $MESSAGE

    #/usr/bin/mail -s "TESTING" PROGDBA@company.org < report.txt

  2. #2
    Join Date
    Dec 2007
    Posts
    23
    am i doing something wrong ???

  3. #3
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,353
    What didn't work? What error message? Which OS?

  4. #4
    Join Date
    Dec 2007
    Posts
    23
    Found out the issue. on Server Sendmail didn't turned on.

Posting Permissions

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