cannot open crontab -e

cannot open crontab -e

am 29.11.2005 22:02:17 von senthilS

I am not able to open crontab in our machine (solaris 5.8).
Is there any path I should set?

Below is the information which I see...

sudo crontab -e
Password:

5432
?
q
The crontab file was not changed.

crontab -e

0
?
q
crontab: temporary file empty


Thanks

Re: cannot open crontab -e

am 29.11.2005 22:19:26 von James

senthilS wrote:
> I am not able to open crontab in our machine (solaris 5.8).
> Is there any path I should set?
>

'man crontab' explains why.

James

Re: cannot open crontab -e

am 29.11.2005 22:23:14 von rockdalinux

well u need to setup or export the EDITOR variable (for bash shell)
export EDITOR=vi

i had same problem few weeks back i got info here
http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/11/can- i-use-crontab-command-with-sys.php

Re: cannot open crontab -e

am 29.11.2005 22:34:13 von senthilS

Thanks guys its worked

I added /usr/bin/vi into my .profile

Re: cannot open crontab -e

am 29.11.2005 22:38:51 von Bjorn Sjoberg

On 2005-11-29, senthilS wrote:
> I am not able to open crontab in our machine (solaris 5.8).
> Is there any path I should set?

You _are_ actually able to open the crontab but it looks like you are using
the ed editor which is crontabs default if no preffered editor is set. If
you're not familiar with ed, try setting EDITOR in your environment.