View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Nov 28, 2007 6:23 pm 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
The program sendEmail has already been covered in the forum which needs to be working first.

Code:
# cat /usr/src/sendemail/upcoming.sh
#! /bin/bash
lynx -dump http://localhost:6544 | sed -n '/^Schedule$/,/^Job\ Queue$/p' | sed  '/^Schedule$\|^Job\ Queue$/d' > /usr/src/sendemail/upcoming.txt
perl /usr/bin/sendEmail.pl -f <fromEmailAddress> -t <toEmailAddress> -u "Upcoming Shows" -s <mailServerAddress> -o message-file=/usr/src/sendemail/upcoming.txt


I added to /etc/crontab
Code:
05 16   * * *   root /usr/src/sendemail/upcoming.sh >> /dev/null 2>&1


To run from the command line:

Code:
# /usr/src/sendemail/upcoming.sh


Permissions on upcoming:
Code:
# ls -l /usr/src/sendemail/upcoming.sh
-rwx--x--x 1 root src 503 Nov 28 15:46 /usr/src/sendemail/upcoming.sh


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 29, 2007 8:39 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
Nice! I'd been looking for something like this. Thx

We need a thread/wiki of (stupid) email tricks that people are doing. I love getting daily updates from my box telling me what recorded, is going to record, etc.

PS I'll work on the wiki page.

<edit> wiki page here. please add others.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu