Page 1 of 1

How to save crontab -e

PostPosted: Fri Jul 20, 2012 11:14 am
by benghoi
Hi guys,

i need your help in saving crontab...

i want to uncomment this line in crontab:
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

This is what i did, please advice if it is not the right way:
- type crontab -e
- edit the line to 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

- Press ESC once then wq
- Then press ctrl Z to go back to command line

but went icheck thru this command crontab -l, nothing change.

Any idea...?

Thanks!

Re: How to save crontab -e

PostPosted: Fri Jul 20, 2012 11:35 am
by KeithHBW
I am not an expert. But it seems you're able to edit accordingly. After editing I hit escape to leave insert or replace mode then type ":x" + enter to save and exit. That saves and reloads the crontab

Re: How to save crontab -e

PostPosted: Fri Jul 20, 2012 12:34 pm
by benghoi
its working now. i use this command:
:wq! then enter