[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Crontab in 5.2



On Sun, 31 Jan 1999, Perry J. Blalock wrote:

> Just noticed for the first time since install, and attempt to edit root's
> crontab yeilds the following error:
> 
> #crontab -e
> no crontab for root - using an empty one
> /bin/sh: /usr/bin/vi: No such file or directory
> crontab: "/usr/bin/vi" exited with status 126
> 
> What's causing this?

It's because vi isn't where cron expects it to be. I fixed it by
making a symlink. First to find out where the RH 5.2 version of vi
is

[rgolan klee rgolan]$ whereis vi
vi: /bin/vi /usr/man/man1/vi.1

Then as root make the symlink

[root klee /root]# ln -s /bin/vi /usr/bin/vi

Now when something tries to execute /usr/bin/vi it will link to
/bin/vi. 

If there is a more proper way to fix this I would like to know. I
can't believe Red Hat let this go for this long or do we just have
something misconfigured?

--
Ron Golan
rgolan mindspring com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]