Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

crontab not working right

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-09-2003   -   Original Discussion by kymberm
kymberm's Unix or Linux Image
kymberm kymberm is offline
Registered User
 
Join Date: Mar 2002
Last Activity: 27 April 2005, 11:36 AM EDT
Location: Texas
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 07-09-2003   -   Original Discussion by kymberm
RTM's Unix or Linux Image
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 16 August 2017, 7:13 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 34 Times in 9 Posts
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.
Sponsored Links
    #3  
Old Unix and Linux 07-09-2003   -   Original Discussion by kymberm
thehoghunter's Unix or Linux Image
thehoghunter thehoghunter is offline
Registered User
 
Join Date: Jan 2002
Last Activity: 23 March 2005, 10:54 AM EST
Location: Florida
Posts: 84
Thanks: 0
Thanked 1 Time in 1 Post
sh or ksh:
# EDITOR=vi; export EDITOR
    #4  
Old Unix and Linux 07-09-2003   -   Original Discussion by kymberm
kymberm's Unix or Linux Image
kymberm kymberm is offline
Registered User
 
Join Date: Mar 2002
Last Activity: 27 April 2005, 11:36 AM EDT
Location: Texas
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
WORKS!

EXCELLENT, thank you both! works, it's a new system, I haven't got it all set up correctly, thank you. Linux
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab not working isaacniu Solaris 6 01-09-2012 05:41 PM
crontab is not working!! getrue Red Hat 14 09-08-2011 11:06 AM
crontab not working shifahim UNIX for Dummies Questions & Answers 8 08-16-2011 08:22 AM
crontab is not working. getrue Solaris 6 07-27-2011 12:34 AM
crontab not working lg123 UNIX for Dummies Questions & Answers 2 04-24-2011 03:47 PM



All times are GMT -4. The time now is 09:07 PM.