Operating System - Tru64 Unix
1828406 Members
3334 Online
109977 Solutions
New Discussion

Re: cron job problem..

 
sonix
Occasional Contributor

cron job problem..

i login as root.How can i modify all user cron job ?
7 REPLIES 7
Venkatesh BL
Honored Contributor

Re: cron job problem..

crontab -e

Check out the manpage of 'crontab' for more info.
Paul Sperry
Honored Contributor

Re: cron job problem..

crontab -l username

list users crons

crontab -e username

edit users crons
Harmanjit_1
Frequent Advisor

Re: cron job problem..

There are two ways to do so :-

1. crontab -e username

OR

2. Although its not good way to do but still you can go to /var/spool/cron/crontab and then edit each user file.
Victor Semaska_3
Esteemed Contributor

Re: cron job problem..

Harmanjit,

You should never edit the crontab file directly. That's because cron keeps all crontab entries in memory.

If you edit the crontab file directly, cron won't see those changes until next reboot.

Using 'crontab -e' will update the file and memory.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Steven Schweda
Honored Contributor

Re: cron job problem..

> If you edit the crontab file directly, cron
> won't see those changes until next reboot.

I haven't tried it lately on Tru64, but
somewhere, sometime, "kill -HUP "
would solve that problem without a reboot.

"crontab -e" is normally simpler, of course.
sonix
Occasional Contributor

Re: cron job problem..

thanks all help me solve this problem.^_^
Venkatesh BL
Honored Contributor

Re: cron job problem..

Check out http://forums1.itrc.hp.com/service/forums/helptips.do?#28 to learn about this forum's point system.