The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
weird file list problem jmmora AIX 8 08-08-2008 08:18 AM
Weird Issue with crontab. Cameron HP-UX 3 04-21-2008 08:36 PM
Weird date difference problem meeraKh Shell Programming and Scripting 22 03-12-2008 08:50 PM
weird problem with removing files rein UNIX for Advanced & Expert Users 2 08-15-2005 04:51 AM
Weird Problem??? danhodges99 UNIX for Dummies Questions & Answers 2 04-11-2003 08:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-03-2007
Registered User
 

Join Date: Sep 2007
Posts: 25
Weird crontab problem

Greetings To All!

I am running Solaris 10 in a sparc environment.

Here is the deal:

In /var/spool/cron/crontabs, there is a cron user named "sys". If I do a
crontab -l sys, it returns:

# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

I have tried to modify the above job by changing the first line...and uncommenting all 3 lines, so that it will read the following at run time:

0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

I am making the above mentioned modification as user "sys", who owns this particular cron job.

The problem is this:

For some weird, unexplainable reason, the modified cron job:

0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

will always revert back to its original default to read:

# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

Anyone have any ideas what could be causing this? This one has me scratching my head...

Your replies are greatly appreciated!

Sincerely

RobSand
Reply With Quote
Forum Sponsor
  #2  
Old 10-03-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
How are you changing it?

Are you using the "crontab" tool to update the table?
Reply With Quote
  #3  
Old 10-03-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,610
When does it revert? Looking at the Solaris 10 source code, I notice this: Cross Reference: /onnv/onnv-gate/usr/src/cmd/sa/svc-sar
Reply With Quote
  #4  
Old 10-03-2007
Registered User
 

Join Date: Sep 2007
Posts: 25
Quote:
Originally Posted by porter View Post
How are you changing it?

Are you using the "crontab" tool to update the table?
I am using: crontab -e sys
Reply With Quote
  #5  
Old 10-03-2007
Registered User
 

Join Date: Sep 2007
Posts: 25
Quote:
Originally Posted by Perderabo View Post
When does it revert? Looking at the Solaris 10 source code, I notice this: Cross Reference: /onnv/onnv-gate/usr/src/cmd/sa/svc-sar
I do not know what time it reverted; I looked in the cron log and could not find anything in there.

Rob
Reply With Quote
  #6  
Old 10-03-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,610
If the file was changed, so was the timestamp on the file. But I wasn't looking for simply a timestamp. I mean, for example, does it change on reboot? Does it change once a day? Are you stopping and restarting the service, and if so does that change it? Etc.
Reply With Quote
  #7  
Old 10-08-2007
Registered User
 

Join Date: Oct 2007
Posts: 1
Have you tried su'ing to the sys user and doing a bit of crontab -e as that user directly?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0