Cron job vanishes if i disconnect the session upruptly


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cron job vanishes if i disconnect the session upruptly
# 1  
Old 10-08-2009
Cron job vanishes if i disconnect the session upruptly

Hi

Am logging in to the server as root.
Using the export EDITOR=vi option before editing the cron file
editing the crontab entry using crontab -e option
the additional jobs which i added can be seen immediately, but when i disconnect the session upruptly the cron entry vanishes the next time i login and see
OS : Solaris 8
what could be the issue?
# 2  
Old 10-08-2009
What do you mean by that ?!

Only the newer job get vanished, or all ? I take it as newer job get vanished, if yes, it is because you have not saved it ! So, that is normal.
# 3  
Old 10-08-2009
hi

Yes ..newer jobs only vanishes...
am saving it with :wq!

even then it vanishes..
# 4  
Old 10-09-2009
What is outcome of the following ?

1. When you exit the vim editor, it is likely to say.,

Code:
crontab: installing new crontab

2. What does your syslog ( debian, check your equivalent ) says.,
Code:
cron: BEGIN EDIT
cron: END EDIT

# 5  
Old 10-11-2009
Nothing like that ..is coming up after editing and saving the file...

I can see the saved cron entries....but it vanishes after uprupt disconnection.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP session not working on cron

Hi, I'm experiencing an issue with creating an ftp session via cron. I am creating an ftp session between a data server and a reporting tool. I have created the script wherein the data server begins the ftp session and puts files into the tool. I have used the .netrc files for this and I run... (10 Replies)
Discussion started by: robin.b
10 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Shell Programming and Scripting

Cron Job help

I need to write the cron job for the following scenario, Please help me out The CRON job runs sometime at night on Saturday and checks if there are more than eight files in the /PROCESSED folder. Any files over and above eight are deleted based on ascending order of date (eight most recent... (10 Replies)
Discussion started by: sandeep.dwivedi
10 Replies

6. Shell Programming and Scripting

cron job

hi, i have set a cron job to run build in one of the env. it shud basically stop the server,deploy the code and start the server. while starting the server the logs are getting created with the cron account id and not the normal user because of which the server is not coming up. can you please... (4 Replies)
Discussion started by: suryans
4 Replies

7. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

8. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

9. UNIX for Advanced & Expert Users

cron job

Hi, Anyone please let me know how to add an entry for crontab while there are few of entries already in. When I execute crontab -e, the entries which are added already are displayed. But, I need to add one more entry to the crontab and then after that I need to remove the entry without... (1 Reply)
Discussion started by: minar
1 Replies

10. Shell Programming and Scripting

Is it possible..when ftp session disconnect and it can automatic run again?

Hi, Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)? Please help!!!! (1 Reply)
Discussion started by: happyv
1 Replies
Login or Register to Ask a Question