Unable to update the Crontab


Thread Tools Search this Thread
# 1  
Old 02-21-2007
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

# 2  
Old 02-21-2007
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.

# 3  
Old 02-21-2007
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 02-21-2007
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?
# 5  
Old 02-22-2007
Excellent remark Onex Smilie, 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

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Crontab update ron5174 Shell Programming and Scripting 15 04-29-2018 06:03 PM
Unable to update package. Junaid Subhani Linux 0 08-02-2017 12:04 PM
Unable to perform yum update Ankur Goyal Red Hat 9 07-21-2015 07:24 PM
Unable to update the string in a file trough case command bhas85 Shell Programming and Scripting 1 08-03-2014 10:35 PM
Unable to access CentOS setup Network Configuration after attempting Python update crmpicco Linux 2 06-27-2014 11:30 AM
Unable to invoke mercurial client from crontab balajesuri UNIX for Dummies Questions & Answers 2 11-15-2013 01:47 AM
Unable to update Fedora after upgrading from Fedora17 to Fedora18 vaibhavvsk Linux 1 01-23-2013 12:30 PM
UNABLE TO UPDATE! HELP! Brandyn UNIX for Dummies Questions & Answers 2 04-20-2012 12:44 AM
Unable to open Crontab Mani_apr08 Solaris 1 08-30-2011 06:05 AM
Unable to Update Date AaronLS2 Fedora 4 08-04-2011 11:31 PM
Pro*C Update not working from Crontab alhallay UNIX for Advanced & Expert Users 2 09-16-2007 01:25 AM
UNIX "Crontab update" ddrivera UNIX for Dummies Questions & Answers 3 07-28-2007 10:09 AM