crontab not working?
Hi,
I have a Solaris sparc 5.9 setup. When I give the command crontab -e, instead of opening an editor the control comes to the next line with 0 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]+ Stopped crontab -e
$
Kindly help.
Thanks.
[373 byte] By [
K79a] at [2007-11-27 11:04:43]

# 1
From the crontab(1) man page: (note: I highlighted the key sentence)
-eEdits a copy of the current user's crontab file, or
creates an empty file to edit if crontab does not
exist. When editing is complete, the file is installed
as the user's crontab file. If a username is given,
the specified user's crontab file is edited, rather
than the current user's crontab file; this may only be
done by a user with the solaris.jobs.admin authoriza-
tion.The environment variable EDITOR determines
which editor is invoked with the -e option. The
default editor is ed(1). Notice that all crontab jobs
should be submitted using crontab. Do not add jobs by
just editing the crontab file, because cron will not
be aware of changes made this way.
Check the value of the EDITOR environment variable.
have good day,
Glen
# 2
absolutely as said above.
check your term variables. in particular check that:
TERM=<your terminal type> (eg TERM=vt100)
EDITOR=vi
and make sure they are exported before typing crontab -e