crontab -e does nothing?

Hi,

I have a Solaris sparc 5.9 setup. When I give the commandcrontab -e, instead of opening an editor the control comes to the next line with0 displayed. Then I have to use CTR+Z to come back to the prompt. The have pasted the screen shot of the same:

$ crontab -e

0

^Z

[2]+ Stoppedcrontab -e

$

Kindly help.

Thanks.

[386 byte] By [K79a] at [2007-11-27 11:04:03]
# 1

Check your environment for the EDITOR variable.

SimonJMa at 2007-7-29 12:55:26 > top of Java-index,General,Talk to the Sysop...
# 2

i would do EDITOR=vi;export EDITOR

Earlysamea at 2007-7-29 12:55:26 > top of Java-index,General,Talk to the Sysop...
# 3

What is actually happening is you are starting the ed editor on an empty file.

As others have posted, setting the EDITOR environment variable to some other editor will prevent this.

But you might try familiarizing yourself with ed just in case your usual editor doesn't work.

wsandersa at 2007-7-29 12:55:26 > top of Java-index,General,Talk to the Sysop...
# 4

> i would do EDITOR=vi;export EDITOR

You are correct.

s-wilsona at 2007-7-29 12:55:26 > top of Java-index,General,Talk to the Sysop...