LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   crontab -e (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-e-214076/)

hoover93 08-05-2004 10:49 PM

crontab -e
 
This may be a dumb question, but hey, I'm a newbie.

I'm trying to setup a nightly task through cron. Several posts I have read in these forums say you should simply type crontab -e to edit your cron table.

So, I open a command prompt, type crontab -e and I'm setting on a blank screen (no previous cron statements). I type my desired command. The question is, how do I "save my work" from this command line? Isn't my command supposed to be saved to a text file somewhere?

If I later go back to a command prompt and type crontab -l to list my table, I'm told that no crontab exists?

What am I doing wrong? RedHat 9.0 is my platform if that helps.

slakmagik 08-05-2004 10:58 PM

Is it completely blank or are there tildes down the side? :) Crontab -e should invoke the default editor (it particularly likes $VISUAL) and that should be vi. So edit and do a ':wq'.

hoover93 08-06-2004 04:05 PM

geez. that was easy. i was setting at the vi editor and didn't even know it. now when i type crontab -l my script is listed. thanks.


All times are GMT -5. The time now is 12:16 PM.