|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how does one save changes in crontab? i am using vi editor. Issued crontab -e command on the prompt. however not sure how to save changes. :wq doesnt work. any idea....
|
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
If your EDITOR isn't set, then just type q to get back to the prompt. If EDITOR is vi, then hitting the escape key, :, wq should work.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
still doesnt work
I tried following
$ crontab -l #00 20 * * * /u02/app/oracle/admin/PROD/scripts/db_bkup.ksh #5,20,35,50 6-19 * * * /u02/app/oracle/admin/PROD/scripts/db_move_out_logs.ksh #00 20 * * * /u02/app/oracle/admin/PROD2/scripts/db_bkup.ksh #5,20,35,50 6-19 * * * /u02/app/oracle/admin/PROD2/scripts/db_move_out_logs.ksh $ crontab -e 284 1 * * * * /u12/archive/rm_archive.sh ? q The crontab file was not changed. $ EDITOR=vi doesnt help either. is it possible to locate the crontab file and write directly to it? thanks a lot |
|
#4
|
||||
|
||||
|
You need to set your EDITOR variable.
If you are using sh or ksh $ EDITOR=vi $ export EDITOR $ crontab -e If you are using csh % setenv EDITOR vi % crontab -e If you are using some other type of shell, please post which one (although one of those two suggestions should work for other shells). |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
able to make changes
hi..thanks a lot. i was able to make changes. however its not running. how do I find out if cron even executed?
my entry looks like this. 1 * * * * /u12/archive/rm_arch.sh now this should execute every minute.. but its not doing anything. thanks a lot. |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Quote:
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
perfect
it runs.. how can change my entry to run every half hour?
new entry: * * * * * /u12/archive/rm_arch.sh its interesting SUN's website shows first entry is for minutes. why it didnt work when I put 1 in the first place? old entry 1 * * * * /u12/archive/rm_arch.sh thanks |
| Sponsored Links | ||
|
![]() |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to save crontab configuration when using SSH? | Roger75 | Linux | 1 | 04-28-2010 11:11 AM |
| Save cURL verbose output to file or do it like browser "save as.." | crabmeat | Shell Programming and Scripting | 0 | 01-23-2010 04:49 PM |
| can't save crontab with vi | idan_cn | UNIX for Dummies Questions & Answers | 3 | 07-04-2008 04:44 AM |
| Crontab refuses to save changes! | fire>ant> | UNIX for Dummies Questions & Answers | 18 | 04-25-2005 03:56 PM |
| save me! | hufs375 | Shell Programming and Scripting | 2 | 05-27-2002 09:03 AM |
|
|