Operating System - Linux
1752292 Members
4393 Online
108786 Solutions
New Discussion юеВ

Re: cronjob is not running

 
Patrick Wallek
Honored Contributor

Re: cronjob is not running

Is this actually HP-UX, then? Or is it some other variety of Unix/Linux?

Do you have anything in /etc/init.d perhaps?

# ls -l /etc/init.d/cron*

yogesh kumar_2
Frequent Advisor

Re: cronjob is not running

hi

i have /etc/init.d/crond
Dennis Handly
Acclaimed Contributor

Re: cronjob is not running

As mentioned by Patrick, what does "uname -a" show?
You are either on some foreign devil OS, or on 9.x?
Patrick Wallek
Honored Contributor

Re: cronjob is not running

OK, then try:

# /etc/init.d/crond start

If it says something about already started, then try:

# /etc/init.d/crond stop

# ps -ef |grep cron
If there are still cron processes, kill them.

# /etc/init.d/crond start


If this happens to be a LINUX server of some variety, then you can try:

# rccrond start

or if cron is already running

# rccrond restart
yogesh kumar_2
Frequent Advisor

Re: cronjob is not running

Its a LINUX m/c
Patrick Wallek
Honored Contributor

Re: cronjob is not running

That would have good to know from the beginning.

Since you didn't mention that to start with everyone here kind of assumed it was HP-UX, since your question was posted in the HP-UX forum.

Since it is Linux, see my post above and see if any of it works.
yogesh kumar_2
Frequent Advisor

Re: cronjob is not running

hi how to run its saying wrong command.
pls tell me in stepwise.
Patrick Wallek
Honored Contributor

Re: cronjob is not running

Without seeing EXACTLY what you are doing, it is hard to tell.

WHAT is saying "wrong command"? Can you cut-and-paste the EXACT commands and errors you are getting?
Deepak Kr
Respected Contributor

Re: cronjob is not running

Yogesh,

First things is that you should always tell OS coorectly before you give other details as this ease the work here to help you further.

Never mind, can you provide us following:

#uname -a
#ls -ltr /etc/init.d/*cron*

To manage crond daemon in Linux, we can make use of ├в service├в command.

To check the status of crond daemon:

service crond status

To stop and terminate crond process:

service crond stop

To start and run crond daemon:

service crond start

To restart crond service:

service crond restart
"There is always some scope for improvement"
Deepak Kr
Respected Contributor

Re: cronjob is not running

also:
To restart the cron service, use:
# /etc/init.d/crond restart
"There is always some scope for improvement"