Home Man
Today's Posts

Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Crontab Issue


Login to Reply

Thread Tools Search this Thread
# 1  
Old 05-30-2013
Crontab Issue

My colleague who was a sysadmin , has created a cron job script which collects logs and process them.

The script works perfectly as per the defined time set by him.

it works when we keep the timing as 55 05 * * * , whereas if we try to prepone the cron task is not getting executed.

Where could be the problem and how to change this.
# 2  
Old 05-30-2013
What is in the script? Does it contain anything that looks at the time when it is being run?

What entry are you making in crontab to prepone the task? Are you adding the new cron task to the same user's crontab that contained the working task?

Are you getting any error messages?
# 3  
Old 05-30-2013
it doesnt check any time stamp and we are not getting any error in the cron logs also.
# 4  
Old 05-30-2013
That answers two of my five questions. What about the other three?
# 5  
Old 05-30-2013
1. Changing it to 30 3 * * * /script

2. user credentials are same.

3. Script has collecting the logs and ftping the dump to another server.
# 6  
Old 05-30-2013
What platform and operating system is this?

How are you changing the time of the cron job exactly?
# 7  
Old 05-30-2013
I'm surprised that you have an executable shell script in your root directory. Did you modify the contents of /script in any way?

Is there something else that runs between 3:30 and 5:55 in the morning that affects the logs your script collects or the dump it transfers?
Login to Reply

« 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
Another issue with crontab rafa_fed2 Shell Programming and Scripting 30 07-24-2013 08:08 PM
Crontab issue jrymer UNIX for Dummies Questions & Answers 6 06-30-2013 04:51 PM
Crontab Issue..!!! gayisada UNIX for Dummies Questions & Answers 1 05-02-2011 05:55 AM
Crontab issue h@foorsa.biz AIX 3 05-02-2011 03:55 AM
Crontab issue pinga123 UNIX for Advanced & Expert Users 1 03-17-2011 05:22 AM
Issue with crontab Sriranga Shell Programming and Scripting 12 06-24-2010 09:19 AM
crontab issue mac4rfree Shell Programming and Scripting 2 06-30-2009 05:51 AM
crontab issue crackthehit007 UNIX for Advanced & Expert Users 4 03-22-2009 11:32 PM
Crontab Issue rickyt00 UNIX for Dummies Questions & Answers 2 08-06-2005 09:31 AM
crontab issue Semper_Tempus Solaris 6 07-19-2005 10:13 PM

All times are GMT -4. The time now is 01:29 AM.

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