LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-05-2004, 10:49 PM   #1
hoover93
Member
 
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, 10:58 PM   #2
slakmagik
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, 04:05 PM   #3
hoover93
Member
 
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.
 
  


Reply


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 10:53 PM
Crontab wormraper Debian 4 05-15-2005 01:01 AM
How to use crontab ? Dakkar Linux - Newbie 2 01-22-2004 10:49 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
HELP!! crontab karleong Linux - General 9 07-12-2003 10:54 AM


All times are GMT -5. The time now is 03:31 PM.

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