restarting cron?

restarting cron?

Post by Robert Muell » Sat, 27 May 1995 04:00:00



I have modified a cron job on my sparc 20 running sunos 5.4.

I would like the system to begin running this new set of
instructions without rebooting. This was simple enough
with 4.1.3...I am unable to do it under 5.4, however.

Could anyone shed some light on this for me?

Also, whenever I want to quit the file manager (Solaris 2.4),
I get a dialog box asking me if I really want to quit it.
This is annoying. Is it a bug?

Thanks in advance.

Bob Mueller
Medical College of Wisconsin

 
 
 

restarting cron?

Post by Andrew Bracewel » Sun, 28 May 1995 04:00:00




Quote:> I have modified a cron job on my sparc 20 running sunos 5.4.

> I would like the system to begin running this new set of
> instructions without rebooting. This was simple enough
> with 4.1.3...I am unable to do it under 5.4, however.

> Could anyone shed some light on this for me?

The way I do it is as follows;

1. crontab -l > /tmp/cron.
2. Edit the /tmp/cron file to reflect the changes.
3. Then do crontab < /tmp/cron.
4. Finally do crontab -l to check it looks ok.

Hope this helps.

Thanks.

--
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

::  UNIX Consultant                                      ::
::                                                       ::
::  Usual disclaimer: All opinions are only my own.      ::
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

 
 
 

restarting cron?

Post by Jacek A. Ponars » Fri, 02 Jun 1995 04:00:00




> > Could anyone shed some light on this for me?

> The way I do it is as follows;

> 1. crontab -l > /tmp/cron.
> 2. Edit the /tmp/cron file to reflect the changes.
> 3. Then do crontab < /tmp/cron.
> 4. Finally do crontab -l to check it looks ok.

what about simple

1. crontab -e

8-)

------------------------------------------------------------------

Albert Einstein College of Medicine   fax:           (718)430-2488
RIT, Bronx, NY.   http://micro6.trincoll.edu, tel:   (718)430-4211
------------------------------------------------------------------

 
 
 

restarting cron?

Post by schoemaker m.c. » Sat, 03 Jun 1995 04:00:00


: I have modified a cron job on my sparc 20 running sunos 5.4.

: I would like the system to begin running this new set of
: instructions without rebooting. This was simple enough
: with 4.1.3...I am unable to do it under 5.4, however.

: Could anyone shed some light on this for me?

See "man cron" (taken from sunos 5.3 however):

     cron only examines crontab files and at command files during
     process  initialization  and  when  a file changes using the
     crontab or at commands.  This reduces the overhead of check-
     ^^^^^^^
     ing  for  new or changed files at regularly scheduled inter-
     vals.

See "man crontab":

  SYNOPSIS
     crontab [ filename ]
     crontab -e [username]
     crontab -r [username]
     crontab -l [username]

  OPTIONS
     -e        The -e option edits a copy of the current  user's
               crontab  file, or creates an empty file to edit if
               crontab does not exist.  When editing is complete,
               the  file is installed as the user's crontab file.
               If a username is given, the specified user's cron-
               tab file is edited, rather than the current user's
               crontab  file;  this  may  only  be  done   by   a
               privileged  user.  The environment variable EDITOR
               determines which editor is invoked with  the   - e
               option.  The default editor is ed(1).

Don't you have man pages, or is 5.4 different from 5.3?
--
Greetings, Marco
------------------------------------------------------------------------

Informatics Division, National Aerospace Laboratory NLR, The Netherlands
P.O.Box 153, 8300 AD Emmeloord, NL,  +31 5274 8437/8444/8210 (me/op/fax)
------------------------------------------------------------------------

 
 
 

restarting cron?

Post by Adrian Risson » Tue, 06 Jun 1995 04:00:00


Give the guy a chance!

There may indeed be something strange about cron in 5.4.
Using crontab in DG-UX 5.4R3.10 MU01 I have found that cron
does *not* automatically pick up the new settings. Nor does
editing the crontab entry manually. Re-starting cron or re-booting seems
to be the only way. Funny, I'm sure everything worked OK with 5.4.2.
That's progress!




>: I have modified a cron job on my sparc 20 running sunos 5.4.

>: I would like the system to begin running this new set of
>: instructions without rebooting. This was simple enough
>: with 4.1.3...I am unable to do it under 5.4, however.

>: Could anyone shed some light on this for me?

>See "man cron" (taken from sunos 5.3 however):

>     cron only examines crontab files and at command files during
>     process  initialization  and  when  a file changes using the
>     crontab or at commands.  This reduces the overhead of check-
>     ^^^^^^^
>     ing  for  new or changed files at regularly scheduled inter-
>     vals.

>See "man crontab":

>  SYNOPSIS
>     crontab [ filename ]
>     crontab -e [username]
>     crontab -r [username]
>     crontab -l [username]

>  OPTIONS
>     -e        The -e option edits a copy of the current  user's
>               crontab  file, or creates an empty file to edit if
>               crontab does not exist.  When editing is complete,
>               the  file is installed as the user's crontab file.
>               If a username is given, the specified user's cron-
>               tab file is edited, rather than the current user's
>               crontab  file;  this  may  only  be  done   by   a
>               privileged  user.  The environment variable EDITOR
>               determines which editor is invoked with  the   - e
>               option.  The default editor is ed(1).

>Don't you have man pages, or is 5.4 different from 5.3?
>--
>Greetings, Marco
>------------------------------------------------------------------------

>Informatics Division, National Aerospace Laboratory NLR, The Netherlands
>P.O.Box 153, 8300 AD Emmeloord, NL,  +31 5274 8437/8444/8210 (me/op/fax)
>------------------------------------------------------------------------