If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Send a email with report once in monthly

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Dec 2007
Posts: 23
am i doing something wrong ???
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,353
What didn't work? What error message? Which OS?
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Dec 2007
Posts: 23
Found out the issue. on Server Sendmail didn't turned on.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On