1831509 Members
3404 Online
110025 Solutions
New Discussion

Re: crontab on linux

 
Edwin Ruiz_2
Super Advisor

crontab on linux

Hi!
I have one crontab on linux server but jobs are not running... what can i do! pls helpme
8 REPLIES 8
Helen French
Honored Contributor

Re: crontab on linux

Is the cron daemon running? (ps -ef). Check the permission of crontab file and the log files for any errors.
Life is a promise, fulfill it!
Huc_1
Honored Contributor

Re: crontab on linux

first have a look to see if you crontab is still there

Login as root try

#crontab -l

This should display your crontab entry

Next

ps -ef | grep -v " grep " | grep -i "crond"

if crond is not running

#service crond status

if realy not there the restart service

like

#service crond start

BUT be carefull !!! this could start all your crontab now be sure this what you want


keep us informed

J-P
Smile I will feel the difference
Steven E. Protter
Exalted Contributor

Re: crontab on linux

crontab -e directly edits this file.

The editor works like vi

Shift-ZZ

Will save it and exit it. If there are errors, they will display.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edwin Ruiz_2
Super Advisor

Re: crontab on linux

Hi!

Crond daemon is running, permisson for /var/spool/cron are rwx------, /var/spool/cron/ias9ir2 are rw-------. Are taht permissions wrong?

Thanks
Huc_1
Honored Contributor

Re: crontab on linux

here they are like

drwx------ 2 root root 4096 Sep 21 17:01 cron

-rw------- for users

J-P

Smile I will feel the difference
Edwin Ruiz_2
Super Advisor

Re: crontab on linux

Thanks for all
Huc_1
Honored Contributor

Re: crontab on linux

Have you got it solved ?

J-P (dont forget to assign points, thanks)
Smile I will feel the difference
Edwin Ruiz_2
Super Advisor

Re: crontab on linux

yes! it is solved! thanks