Unable to update the Crontab


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to update the Crontab
# 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

Jeremy
# 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.

Carl
# 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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab update

Hello. We have a big crontab file where we need to comment out for few countries and also uncomment out based on situations . Could someone let us know how this can be done using a script . Sample file look like & here i need to comment/uncomment based on country code . 0-59 ...... (15 Replies)
Discussion started by: ron5174
15 Replies

2. Linux

Unable to update package.

I am trying to update an openssl package on my node. # yum update openssl-1.0.1e-60.el7.x86_64 Loaded plugins: product-id, rhnplugin, subscription-manager This system is receiving updates from RHN Classic or Red Hat Satellite. baseline_prd_channel ... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

3. Red Hat

Unable to perform yum update

Hi, I run RHEL 5.2 as a server in my lab. Now the issue I am facing is that I am unable to update my machine using yum update. It shows an error of missing dependencies though dependencies are already installed. Please help me to do that. Error screen shot is also attached. (9 Replies)
Discussion started by: Ankur Goyal
9 Replies

4. UNIX for Dummies Questions & Answers

Unable to invoke mercurial client from crontab

We have the Mercurial client installed on our linux machine. $ hg --version Mercurial Distributed SCM (version 2.2.3)When I try to invoke it using a cronjob, it fails with the message "command not found". $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. #... (2 Replies)
Discussion started by: balajesuri
2 Replies

5. Linux

Unable to update Fedora after upgrading from Fedora17 to Fedora18

I have just upgraded to fedora 18 from 17 using fedup tool. The upgradation process succeeded and I can feel the new desktop appearance of fedora18. when I tried to update using yum update. I can see that the fedora17 files are not removed completely and they are also listed below the files to... (1 Reply)
Discussion started by: vaibhavvsk
1 Replies

6. UNIX for Dummies Questions & Answers

UNABLE TO UPDATE! HELP!

I just installed the latest version of ubuntu and I can't run the update manager without getting an error message. Im not sure what info i need to post so i can get help so just tell me if i need to post info because i would like to use ubuntu. (2 Replies)
Discussion started by: Brandyn
2 Replies

7. Solaris

Unable to open Crontab

Hi, I have 2 solaris server. I can able to open to see cron entry by using crontab -l in one of the server. I cant able to open another server. How to check if crontab is fixed in that server. If not then how to make a crontab in that server. Please advice. Thanks, Mani ----------... (1 Reply)
Discussion started by: Mani_apr08
1 Replies

8. Fedora

Unable to Update Date

Hi everyone, Thanks for your help with this. I'm running an AWS EC2 instance (ami-2bc05345) and the time has been drifting. I have a different server using the same instance where the time is fine. NTP seems to be installed and be running (I uninstalled it and reinstalled it via Yum, just to... (4 Replies)
Discussion started by: AaronLS2
4 Replies

9. UNIX for Advanced & Expert Users

Pro*C Update not working from Crontab

Dear All, I have writen a Pro*c program that does a data base select,insert,update statements and I have scheduled the program to run from crontab, It is runing fine for the select insert and commit statement till it reaches the update statement , it throws the following error: SQL On IPB... (2 Replies)
Discussion started by: alhallay
2 Replies
Login or Register to Ask a Question