1832596 Members
3100 Online
110043 Solutions
New Discussion

Crontab problem!

 
SOLVED
Go to solution
Worapoj P.
Regular Advisor

Crontab problem!

Dear all,

I'm not sure this is problem or not, I'm woking on HP-UX 11.00 on N4000 when I made
schedule job by crontab command after that I need remove some exsit job by edit "/var/spool/cron/crontabs/user1 (jobs of user1) and remake line following disable job. But this disable job stilled running on
time. Please explain me why? I well know we can modify cron job by "crontab -e"

Best regards,
Worapoj
For LOVE For Honor For Mankind
2 REPLIES 2
Paul Hite
Trusted Contributor
Solution

Re: Crontab problem!

cron reads in the crontabs when it starts up. The "crontab -e" command signals cron to reread the edited crontab. You can kill and restart cron to force the reread. But you are better off using "crontab -e".
Anthony Goonetilleke
Esteemed Contributor

Re: Crontab problem!

LIke the previous reply said you will have to re-read the crontab file it is always a good idea to only use the crontab editor (-e) which is vi, also you can list the crontab by typing crontab -l username
Minimum effort maximum output!