1752369 Members
5649 Online
108787 Solutions
New Discussion юеВ

Cronjobs in linux

 
SOLVED
Go to solution
Shrikant Lavhate
Esteemed Contributor

Cronjobs in linux

Hi Gurus,

Can any one help me out to securely disable and enable cron jobs in linux?
Will it remain a personal, if I broadcast it here!
4 REPLIES 4
Hemmetter
Esteemed Contributor

Re: Cronjobs in linux

Hi,


that varies on which distribution/version of linux resp. version of cron.

See crontab(1) for more information.

Have FILES section:

through
/var/spool/cron/allow
/var/spool/cron/deny
resp.
/etc/cron.allow
/etc/cron.deny

you can control cron-usage.

rgds
HGH




Shrikant Lavhate
Esteemed Contributor

Re: Cronjobs in linux

Actually,

I want to disable cron jobs for some time not for some users. Say during some installtion of application I want to disable cronjobs so that they shuld not interfere or cause any disturbance in installtion and after installation is over I will enable cronjobs. Thats what I need.
Will it remain a personal, if I broadcast it here!
Hemmetter
Esteemed Contributor
Solution

Re: Cronjobs in linux

Hi,

the you have to stop crond at all:


either with
$ rccron stop # on e.g. SuSE
or
$ service crond stop # on e.g. RedHat

and start it again after your tasks.
$rccron start
or
$ service crond start


rgds
HGH
Shrikant Lavhate
Esteemed Contributor

Re: Cronjobs in linux

ok done. Just wanna know abt linux it was pretty same in hpux with #/etc/init.d/crond stop
Will it remain a personal, if I broadcast it here!