The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 12:18 PM
Weird Issue with crontab. Cameron HP-UX 3 04-22-2008 12:36 AM
Weird date difference problem meeraKh Shell Programming and Scripting 22 03-12-2008 11:50 PM
weird problem with removing files rein UNIX for Advanced & Expert Users 2 08-15-2005 08:51 AM
Weird Problem??? danhodges99 UNIX for Dummies Questions & Answers 2 04-11-2003 12:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2007
RobSand RobSand is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 27
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
  #2 (permalink)  
Old 10-03-2007
porter porter is offline Forum Advisor  
Registered User
  
 

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

Are you using the "crontab" tool to update the table?
  #3 (permalink)  
Old 10-03-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,120
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
  #4 (permalink)  
Old 10-03-2007
RobSand RobSand is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 27
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
  #5 (permalink)  
Old 10-03-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,120
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.
  #6 (permalink)  
Old 10-08-2007
playuppompey playuppompey is offline
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?
  #7 (permalink)  
Old 10-03-2007
RobSand RobSand is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 27
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0