Dear Kevin We tried to put our intended script under /etc/cron.daily but it is run just for the first trial and we don't see any other output for subsequent trial . Can you please let us know what is wrong in our case ? Regards H.Motamedi
On Sun, Jul 26, 2009 at 10:54 PM, Kevin Ross <ke...@familyross.net> wrote: > > Dear All > > We have set a new scheduled task through crontab job list , as the > followings : > > #crontab -e > > 30 23 * * * cp ~www/db_backup/cdr/cdrFromMSC* /tmp > > It is functioning correctly but we will loose it after server reboot . > Can > you please let us know how we can set it permanently even after server > reboot ? > > Regards > > H.Motamedi > > I just verified on my system that jobs created with "crontab -e" are > remembered across reboots. "crontab -e" creates the crontab files under > /var/spool/cron/crontabs. Make sure that directory isn't getting wipred > out > on reboot. > > crontab -e is for creating "user" cron jobs. > > "System" cron jobs are best placed in one of the /etc/cron.* directories. > If you want it to run daily, (at 6:25 AM), just create a new shell script > in > /etc/cron.daily with the commands you want run at that time. If you want > more control over what time of day it runs, etc, create a new file in > /etc/cron.d > > Hope this helps! > > -- Kevin > >