Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-05-2004, 11:49 PM   #1
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Rep: Reputation: 15
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.
Old 08-05-2004, 11:58 PM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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'.
Old 08-06-2004, 05:05 PM   #3
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab x2??? killahsmurf Slackware 2 05-24-2005 11:53 PM
Crontab wormraper Debian 4 05-15-2005 02:01 AM
How to use crontab ? Dakkar Linux - Newbie 2 01-22-2004 11:49 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 01:35 PM
HELP!! crontab karleong Linux - General 9 07-12-2003 11:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration