The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab-nmon not working fara_aris AIX 5 06-03-2008 02:08 AM
Pro*C Update not working from Crontab alhallay UNIX for Advanced & Expert Users 2 09-15-2007 09:25 PM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 09:11 AM
crontab command not working digant UNIX for Advanced & Expert Users 8 01-04-2004 06:46 PM
cron/crontab not working ezekiel61 UNIX for Dummies Questions & Answers 2 02-05-2003 04:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-09-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
crontab not working right

I am having problems with a sparc5 solaris 7 box, when i try to edit cron, (crontab -e as root), it says
$ crontab -e
0





and then nothing, if i enter anything it errors out but does accept q for quit. But doesn't bring up my editor of the cron file. How can I troubleshoot this?


Thanks
Forum Sponsor
  #2  
Old 07-09-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
To troubleshoot you should read the man page for crontab.

Quote:
(crontab -e as root), it says
$ crontab -e
0
Note: You would not have a $ as a prompt if you were root. Make sure you have done a su - .

Then check your EDITOR:

The EDITOR value can be seen by
$ echo "$EDITOR"

If it's not set, you will get an error "Undefined variable". If you then do the crontab -e command, it will default to ed which is mentioned in the man page for crontab.

Fix these two problems and you will be on your way.
  #3  
Old 07-09-2003
Registered User
 

Join Date: Jan 2002
Location: Florida
Posts: 84
sh or ksh:
# EDITOR=vi; export EDITOR
  #4  
Old 07-09-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
WORKS!

EXCELLENT, thank you both! works, it's a new system, I haven't got it all set up correctly, thank you.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0