Just set your EDITOR variable to whatever you want. If you set EDITOR=emacs;
export EDITOR then you will be able to use emacs when you type crontab -e.

-Paul

Fri, 04 Feb 2000, Ward William E PHDN wrote:
> If you absolutely must edit the file (or you don't want to use vi)
> then do the following:
> 
> crontab -l /tmp/crontab
> emacs /tmp/crontab
> crontab /tmp/crontab
> 
> Otherwise, like what Vidiot said below, Mikkel
> 
> -----Original Message-----
> From: Vidiot [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 04, 2000 7:31 AM
> To: [EMAIL PROTECTED]
> Cc: recipient.list.not.shown
> Subject: Re: cron
> 
> 
> >On Thu, 3 Feb 2000, Mikkel L. Ellertson wrote:
> >
> >> >I'm having trouble getting cron to exec under RH 6.1.  Even
> >> >a simple job to 'ls' every minute does not fly as shown below.
> >> >If I put a script in /etc/cron.hourly that works though.
> >> >Thanks for any tips.  
> >
> >You probably know this, but after editing /etc/crontab you need to restart
> >cron (or send -HUP to it) to make it read the changes. Putting something
> >in /etc/cron.* doesn't need this.
> >
> >Hossein
> 
> First off, you shouldn't be editing /etc/crontab.  If you have jobs you want
> to run as root, do the following as root:
> 
>       crontab -e
> 
> Now add, or change, what you want.
> 
> The same thing applies as users.
> 
> MB
> -- 
> e-mail: [EMAIL PROTECTED]
>     Bart: Hey, why is it destroying other toys?  Lisa: They must have
>     programmed it to eliminate the competition.  Bart: You mean like
>     Microsoft?  Lisa: Exactly.  [The Simpsons - 12/18/99]
> Visit - URL:http://www.vidiot.com/  (Your link to Star Trek and UPN)
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
-- 
  9:14am  up 21:29,  2 users,  load average: 0.40, 0.33, 0.26


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to