Today's Posts

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in the UNIX for Beginners Questions & Answers forum.

crontab not working



Thread Tools Search this Thread
# 1  
Old 08-16-2011
Question crontab not working


I had setup crontab to execute my script every day midnight 00:00

Below are the current settings.

crontab -l
0 0 * * * /apps/bin/compress.ksh_moht > /dev/null 2>&1

Should it not work?

I need help fix this?
# 2  
Old 08-16-2011
whats your cron log says ?


# 3  
Old 08-16-2011

more /var/cron/log
/var/cron/log: Permission denied
ls -ltr /var/cron/log
-rw-------   1 root     root      492594 Aug 16 02:10 /var/cron/log

uid=870(wlsuser) gid=641(wlsgrp)

# 4  
Old 08-16-2011
hmm, check with your system admin and get the information or check is there any error on the cron log
# 5  
Old 08-16-2011

So, are you fine with the way my crontab is setup?

I can simply write a script to remove a file from the /tmp and check if my syntax of crontab is fine ?
# 6  
Old 08-16-2011
yes... its correct...
# 7  
Old 08-16-2011


I tried to check if the crontab is even working.

Below is what I did.

crontab -l
0,5,10,15,20,25,30,35,40,45,50,55 * * * * echo "Hello"

I believe the above should have echo'ed "Hello" after 5 mins.

Tue Aug 16 06:41:22 EDT 2011
Tue Aug 16 06:49:11 EDT 2011

However, did not see any output.

Please confirm if my test is correct and how could I check if the crontab is even Running.

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab is not working BPANDEY Red Hat 5 09-17-2015 11:55 AM
Crontab not working Junaid Subhani Shell Programming and Scripting 7 06-06-2015 04:02 PM
Script not working via crontab ash1234 Shell Programming and Scripting 1 02-09-2015 06:32 AM
Script not working via crontab ash12345 Shell Programming and Scripting 6 02-08-2015 01:34 PM
Crontab not working krebe Linux 4 02-12-2013 05:50 AM
Script not working in crontab nandan8a Shell Programming and Scripting 9 08-08-2012 09:22 PM
Crontab not working, please help samantha13 UNIX for Advanced & Expert Users 0 08-02-2012 01:25 PM
crontab not working isaacniu Solaris 6 01-09-2012 06:41 PM
crontab is not working!! getrue Red Hat 14 09-08-2011 12:06 PM
crontab is not working. getrue Solaris 6 07-27-2011 01:34 AM
crontab not working lg123 UNIX for Dummies Questions & Answers 2 04-24-2011 04:47 PM
Crontab entry is not working jramesh1 UNIX for Dummies Questions & Answers 1 07-27-2010 05:07 AM
crontab not working rajesh_hv UNIX for Advanced & Expert Users 4 10-28-2008 08:45 AM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 01:11 PM
crontab not working right kymberm UNIX for Dummies Questions & Answers 3 07-09-2003 05:21 PM

All times are GMT -4. The time now is 11:40 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password