1752806 Members
5787 Online
108789 Solutions
New Discussion юеВ

Re: crontab

 
madhudeepan
Frequent Advisor

crontab

when i used
ps -ef | grep cron
cron is not started
how to start crontab
8 REPLIES 8
Michal Kapalka (mikap)
Honored Contributor

Re: crontab

Sajjad Sahir
Honored Contributor

Re: crontab

Dear Friend

# /sbin/init.d/cron start # /sbin/init.d/cron stop

thanks and regards

Sajjad Sahir
Sajjad Sahir
Honored Contributor

Re: crontab

if cron is not running simply type

# cron

thanks and regards

Sajjad Sahir
Michal Kapalka (mikap)
Honored Contributor

Re: crontab

hi,

at first this file for thos value :

/etc/rc.config.d/cron

CRON=1 if its 0 the cron will never start

mikap
Sajjad Sahir
Honored Contributor

Re: crontab

Dear Madhu

You must login as the root to run following commands. Each user that is using the cron service must have a cron configuration file in the /var/spool/cron/crontab directory. Also users are permitted if their name appeared in /var/adm/cron/cron.allow file

Task: Find out if cron is running under HP-UX
Type the following command at a shell prompt

# ps -ef | grep cron

Open /etc/rc.config.d/cron file

vi /etc/rc.config.d/cron

Set control variable to 1 to enable cron : CRON=1
Set control variable to 0 to disable : CRON=0
Close and save the file. To start or stop cron you can type the following command:

# /sbin/init.d/cron start <-- start cron
# /sbin/init.d/cron stop <-- stop cron


Task: HP-UX Start cron service
If cron is not running, simply type:

# cron

Task: Edit / create cron jobs
Type the following command to submit a cron job:

# crontab -e

List your cron file:

# crontab -l

Remove ALL cron job:

# crontab -r


thanks and regards

sajjad Sahir


Sajjad Sahir
Honored Contributor

Re: crontab


Dear Madhu

Please assign the points to the peoples who is answering u questions


thanks and regards

Sajjad Sahir
Aryan
Advisor

Re: crontab

Hi Madhu,

A variable named CRON in the
/etc/rc.config.d/cron file controls whether the daemon will be started at boot time. If this variable value is
1, the daemon is started at boot time, and if the value is zero (0), the daemon is not started.

just edit the crontab file by
crontab -e command

And to start it /sbin/init.d/cron start command...

You can get the related script at /sbin/rc2.d/S730cron location...

Regards,
Aaryan
Kranti Mahmud
Honored Contributor

Re: crontab

Hi Madhu,

Check the below links, which will help you:

http://www.ss64.com/bash/crontab.html
http://www.tech-geeks.org/contrib/mdrone/cron&crontab-howto.htm
http://www.adminschoice.com/docs/crontab.htm

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!