RE: crontab script

From: Ian Pease (I.Pease@esteem.co.uk)
Date: Fri Apr 04 2003 - 09:56:44 EST


Thanks to every one that responded in the end it proved very easy

echo "10 3 * * 0,4 /etc/ianstest" >> /var/spool/cron/crontabs/root
/etc/init.d/cron stop
sleep 4
/etc/init.d/cron start

Thanks to everyone who responded so quickly

Ian

-----Original Message-----
From: Ian Pease [mailto:I.Pease@esteem.co.uk]
Sent: 04 April 2003 15:16
To: 'sunmanagers@sunmanagers.org'
Subject: crontab script

I was wondering if anyone has a script or any suggestions on how to add a crontab entry automatically via a script
I am trying to write an installation script and at the end I want the script to add an entry into the crontab file for root

Thanks
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:08 EDT