Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Unable to update the Crontab

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-21-2007   -   Original Discussion by Jeremy3
Jeremy3's Unix or Linux Image
Jeremy3 Jeremy3 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 8 March 2009, 4:34 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Unable to update the Crontab

Hi Everyone,

Each time I do update the crontab, it gets reset after exiting from the telnet session. I'm using Solaris 2.8

So it goes like this:
Step 1: Login as root, from a telnet session
Step 2: Crontab -e (I make modification)
Step 3: Save and exit
Step 4: Type crontab -l , changes are taken into account
Step 5: Exit from the telnet session
Step 6: Open a new telnet session, and type crontab -l
Step 7: All the previous modification, are not taken into account.


Any help, or tips would be appreciated

Jeremy
Sponsored Links
    #2  
Old Unix and Linux 02-21-2007   -   Original Discussion by Jeremy3
BOFH's Unix or Linux Image
BOFH BOFH is offline Forum Advisor  
Registered User
 
Join Date: Feb 2005
Last Activity: 7 May 2012, 4:35 PM EDT
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
If you check /var/spool/cron/crontabs, is root's crontabs file date/time changed after you make the change the first time? When you log back in the second time, what's the date/time of root's crontabs file?

Off hand I'd be looking for something that manages root's cron replacing it with a backup copy or mirror from another server.

Carl
Sponsored Links
    #3  
Old Unix and Linux 02-21-2007   -   Original Discussion by Jeremy3
Jeremy3's Unix or Linux Image
Jeremy3 Jeremy3 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 8 March 2009, 4:34 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the feedback.
The date of the file do correspond to the time, I make a change, and then the file changes, when I exit and re-loggin to the system.
    #4  
Old Unix and Linux 02-21-2007   -   Original Discussion by Jeremy3
ONEX's Unix or Linux Image
ONEX ONEX is offline
Registered User
 
Join Date: Feb 2007
Last Activity: 3 May 2007, 3:39 PM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Does the crontab time stamp change again to the time of the 2nd login? Is there something in roots .login or .profile that rewrites the crontab from another location?
Sponsored Links
    #5  
Old Unix and Linux 02-22-2007   -   Original Discussion by Jeremy3
Jeremy3's Unix or Linux Image
Jeremy3 Jeremy3 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 8 March 2009, 4:34 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Excellent remark Onex Linux, indeed it was the .profile that rewrites the Crontab.

Removed the line on the .profile, and everything is working fine.

Once again, thanks guys for your help
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNABLE TO UPDATE! HELP! Brandyn UNIX for Dummies Questions & Answers 2 04-19-2012 11:44 PM
Unable to open Crontab Mani_apr08 Solaris 1 08-30-2011 05:05 AM
Unable to Update Date AaronLS2 Fedora 4 08-04-2011 10:31 PM
Pro*C Update not working from Crontab alhallay UNIX for Advanced & Expert Users 2 09-16-2007 12:25 AM



All times are GMT -4. The time now is 12:42 PM.