Forum Moderators: bakedjake

Message Too Old, No Replies

how to setup this cron job?

how to setup this cron job?

         

sohaibkhan

2:37 am on Feb 22, 2006 (gmt 0)

10+ Year Member



I am just wondering how I can setup the following cron JOB

I want the cron system to send me an email every sunday informing me about me paying a bill. how can enter that message via my crontab .

Please kindly help me as I would like to setup a reminder where I can get an email from my server every sunday.

Thanks

billegal

3:04 pm on Feb 24, 2006 (gmt 0)

10+ Year Member



There are two components to this. First, you need to have a script that will send the email with the information you want. You should be able to figure out that part.

Then you need an entry in your crontab that will run that script on Sunday. This part too can be figured out by Googling for the information. If you attempt this and fail, please post what you have tried.

TheGrid

12:53 am on Mar 21, 2006 (gmt 0)

10+ Year Member



BillScript.sh
----------------
echo "Wake up, pay the bill" ¦ mailx -s "Bill Bill" "aa@webmasterworld.com"

On Unix shell
> crontab -e (Cron file will open then enter the below stuff, change path, file name etc)
0 9 * * 0 /usr/aa/BillScript.sh

and lastly run 'man cron' and read that, it pretty easy.