Computing.Net > Forums > Unix > mail in unix at specific time

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

mail in unix at specific time

Reply to Message Icon

Name: sureshht
Date: October 3, 2007 at 14:04:06 Pacific
OS: AIX 5L
CPU/Ram: 4 CPU/8GB RAM
Product: RS6000
Comment:

Hi,

I would like to send mail at specific time everyday. It is a part of the script that sends out mail every 15 minutes. I need to mail the end of the day report in the evening.

I tried this,but doesnot work:

tstamp= $(date +\%H:\%M)
if [ ${tstamp}== 17:30 ]; then
echo "End of the day report" >>$tmpfile2
mailit=true
fi

if [ "$mailit" = "true" ]; then
uuencode ${tmpfile2} ${tmpfile2} | mailx -s "${ORACLE_SID}: EOD Report" $maillist
fi

Thanks for your help in advance

Suresh HT

sureshht



Sponsored Link
Ads by Google

Response Number 1
Name: fpmurphy
Date: October 5, 2007 at 03:31:52 Pacific
Reply:

Try

if [ "$tstamp" = "17:30" ]
then
echo "End of the day report" >>$tmpfile2
mailit=true
fi



0

Response Number 2
Name: sureshht
Date: October 22, 2007 at 06:58:14 Pacific
Reply:

Hi,

The solution not working


sureshht


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: mail in unix at specific time

Running programms at given time www.computing.net/answers/unix/running-programms-at-given-time/7020.html

like Doskey utility in unix www.computing.net/answers/unix/like-doskey-utility-in-unix/3439.html

Calculate time taken in a script www.computing.net/answers/unix/calculate-time-taken-in-a-script/2476.html