Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can not run cron editor using another id

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hello,

Could someone tell me what's missing?
I can execute the "crontab -e" with useridA, but when I change to useridB, I get error:

MyServer$ crontab -e
sh: emacs: not found
The crontab file was not changed.

I try to change to sh shell, but it does not help, should I run the cron under this user id or else?
Thanks
 
Crontab -e uses the environment variable EDITOR to select which editor it uses... Looks like emacs can not be found.
Try setting the editor to vi...

setenv EDITOR vi

Then run the crontab -e
 
Thanks bfitzmai

You are right, the editor is not in the path, however, I am in the Korn shell, not C shell. Anyway, I got it works for the right shell now.
Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top