* Cron Refresh
@ 2002-09-01 4:43 dsamuels
2002-09-01 13:21 ` Adam Price
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: dsamuels @ 2002-09-01 4:43 UTC (permalink / raw)
Isn't there a way to refresh cron to pick up changes made using crontab
-e? I made the changes but the specified jobs did not run. I'm thinking
I need to refresh cron to pick up the changes. Is this true? Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 4:43 Cron Refresh dsamuels
@ 2002-09-01 13:21 ` Adam Price
2002-09-02 1:30 ` Mike Coleman
2002-09-03 19:11 ` Geert Van Pamel
2002-09-06 10:16 ` John
` (2 subsequent siblings)
3 siblings, 2 replies; 8+ messages in thread
From: Adam Price @ 2002-09-01 13:21 UTC (permalink / raw)
dsamuels wrote:
> Isn't there a way to refresh cron to pick up changes made using
> crontab -e? I made the changes but the specified jobs did not run.
> I'm thinking I need to refresh cron to pick up the changes. Is this
> true? Thanks.
Crontab -e should do that for you, that's the whole point of using
it rather than editing the file yourself.
Why do you think the job didn't run?
Post the crontab entry and the script. Give details of the version of
Tru64 and the patch level.
Then perhaps we can help you to figure out the real cause of the problem.
Hope this helps
Adam
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 13:21 ` Adam Price
@ 2002-09-02 1:30 ` Mike Coleman
2002-09-03 19:11 ` Geert Van Pamel
1 sibling, 0 replies; 8+ messages in thread
From: Mike Coleman @ 2002-09-02 1:30 UTC (permalink / raw)
"Adam Price" <adam+usenet@pappnase.co.uk> writes:
> Crontab -e should do that for you, that's the whole point of using
> it rather than editing the file yourself.
(plus it should provide locking to prevent simultaneous changes)
> Why do you think the job didn't run?
> Post the crontab entry and the script. Give details of the version of
> Tru64 and the patch level.
You might also check the logs. I can't recall which one it is on Tru64, but
one of them in /var/adm should log cron runs.
Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 13:21 ` Adam Price
2002-09-02 1:30 ` Mike Coleman
@ 2002-09-03 19:11 ` Geert Van Pamel
1 sibling, 0 replies; 8+ messages in thread
From: Geert Van Pamel @ 2002-09-03 19:11 UTC (permalink / raw)
I have seen the following problem when editing the cron file for another
user:
crontab -e idxxxxxx
This changed the control file,
when I verified with crontab -l the contents was correctly shown,
but the cron daemon did not execute the new contents.
We are running Unix 4.0D
To solve the problem, I needed to follow the following commands:
su - idxxxxxx
crontab -l |crontab
This seems to work ... since then I prefer the following
su - idxxxxxx
crontab -e
which seems to work also ...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 4:43 Cron Refresh dsamuels
2002-09-01 13:21 ` Adam Price
@ 2002-09-06 10:16 ` John
2002-09-08 12:00 ` Jon Mapp
2002-09-13 7:25 ` Andrew Rose
3 siblings, 0 replies; 8+ messages in thread
From: John @ 2002-09-06 10:16 UTC (permalink / raw)
Hi
I always use crontab -e and this reads in the new entries when you save and
quit.
The other option is to stop and start cron when the new entries have been
added
Cheers John
"dsamuels" <dsgroup@core.com> wrote in message
news:3D71A00F.5C37AA6F@core.com...
> Isn't there a way to refresh cron to pick up changes made using crontab
> -e? I made the changes but the specified jobs did not run. I'm thinking
> I need to refresh cron to pick up the changes. Is this true? Thanks.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 4:43 Cron Refresh dsamuels
2002-09-01 13:21 ` Adam Price
2002-09-06 10:16 ` John
@ 2002-09-08 12:00 ` Jon Mapp
2002-09-09 17:26 ` Chuck
2002-09-13 7:25 ` Andrew Rose
3 siblings, 1 reply; 8+ messages in thread
From: Jon Mapp @ 2002-09-08 12:00 UTC (permalink / raw)
crontab -v will resubmit the cron and verify a time of submission...
handy if you have used vi or another editor to edit the cron file.
Note must be done as the user fo that cron file or use an su -c
Jon
"dsamuels" <dsgroup@core.com> wrote in message
news:3D71A00F.5C37AA6F@core.com...
> Isn't there a way to refresh cron to pick up changes made using crontab
> -e? I made the changes but the specified jobs did not run. I'm thinking
> I need to refresh cron to pick up the changes. Is this true? Thanks.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-08 12:00 ` Jon Mapp
@ 2002-09-09 17:26 ` Chuck
0 siblings, 0 replies; 8+ messages in thread
From: Chuck @ 2002-09-09 17:26 UTC (permalink / raw)
I don't understand this discussion. I almost always just do
"crontab -l > xx" to get a copy of the crontab file, then
edit xx, then do "crontab xx" to update the crontab file.
Often I'll do this just to temporarily schedule a process to
start at a different time, such as 10 or 15 seconds from
now, then change it back to the regular schedule after the
process starts. I've never had a problem with crontab
immediately picking up the change and running the process at
the newly specified time. (I know I can use 'at now' to do
this, but then I have to worry about typing stuff
correctly.)
Am I missing something? Not saying I'm not.
Chuck H.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cron Refresh
2002-09-01 4:43 Cron Refresh dsamuels
` (2 preceding siblings ...)
2002-09-08 12:00 ` Jon Mapp
@ 2002-09-13 7:25 ` Andrew Rose
3 siblings, 0 replies; 8+ messages in thread
From: Andrew Rose @ 2002-09-13 7:25 UTC (permalink / raw)
dsamuels <dsgroup@core.com> wrote in message news:<3D71A00F.5C37AA6F@core.com>...
> Isn't there a way to refresh cron to pick up changes made using crontab
> -e? I made the changes but the specified jobs did not run. I'm thinking
> I need to refresh cron to pick up the changes. Is this true? Thanks.
I've had the same thing happen <blush>.
In my case it was just me getting caught not remembering that cron
runs jobs under a very minimal environment, and under sh. I was trying
to work out why cron wasn't picking up the crontab changes, but that
wasn't the real problem.
A script which ran fine from the command prompt, would seemingly not
run from cron. What I had to do was establish the same environment
variables within the script before cron would actually run the job.
Don't know if this applies in your case.
Cheers,
Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-09-13 7:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-01 4:43 Cron Refresh dsamuels
2002-09-01 13:21 ` Adam Price
2002-09-02 1:30 ` Mike Coleman
2002-09-03 19:11 ` Geert Van Pamel
2002-09-06 10:16 ` John
2002-09-08 12:00 ` Jon Mapp
2002-09-09 17:26 ` Chuck
2002-09-13 7:25 ` Andrew Rose
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox