1

I'm doing server migration in sun solaris OS. And I have to migrate crontabs also with that. New server have fresh installation of solaris. In usual way while I type crontab -l it shows the existing cron content.

But while I type crontab -e it fail to load the editor. How can I overcome this issue?

Fraser
  • 13
  • 2
  • 1
    Not certain about Solaris, but on some other systems `crontab -e` will attempt to launch the editor defined by `$EDITOR`. Perhaps you just need to set the environment variable to something like `EDITOR=/path/to/vi` – Michael Berkowski Sep 15 '14 at 20:33
  • 2
    This kind of question is more on topic over at http://superuser.com than here at Stack Overflow, incidentally. – Michael Berkowski Sep 15 '14 at 20:34

1 Answers1

0

This can be fixed by exporting editor variable with value vi. So run following command and then run crontab -e

export EDITOR=vi
crontab -e
sugunan
  • 4,408
  • 6
  • 41
  • 66