Joe's Own Editor and crontab


#1

Is there a way to force crontab to use nano?

I’m familiar with nano for editing crontab.
So when I started a new account on box ‘galactus’ I as surprised to find that the editor for crontab is 'Joe’s Own Editor v.3.5.

It’s not that I’m against change. Maybe if I got used to it, I’d be happy using it. Right now, I just need to get the job done, and Joe ain’t helping.

Top that off with a script that asks you if you want to use a preferred email address to receive emails for each cron job. It says you can leave it blank, but you really can’t. You’re stuck in a loop until you put in something. Ugh.

[code][galactus]$ crontab -e
It looks like you don’t have a MAILTO line in your crontab file
For performance reasons we ask that you specify an address where
cronjob output will be delivered. If you do not wish to receive
cronjob output, simply press enter and cronjob output will not be
mailed to you.

For more information regarding this, please visit:

Where would you like cronjob output delivered? (leave blank to disable)
:

cronjob output will not be emailed to you
confirm? (y/N): N
Where would you like cronjob output delivered? (leave blank to disable)
:
[/code]I know I can edit it in the panel, but a lot of times, I want to tweak it in a way the panel isn’t set up to do.

If I have to use Joe’s Editor, please point me to a step-by-step recipe for making crontab work with it.


#2

You can change your default editor

export EDITOR=joe

does the trick, you can append at the end of .bash_profile if you’re using bash as shell.

When you call crontab -e you will be presented with joe, even when I prefer vim.

I misread your post, for nano to be the default editor

export EDITOR=nano

And you’re done.


Somewhere, something incredible is waiting to be known.
Sagan


#3

Thank you vicm3!

That works perfectly.


#4

I know this topic is over but I noticed why you were stuck in a loop.

cronjob output will not be emailed to you
confirm? (y/N): N

By answering no to that question it means you do want the output emailed to you. Then asks you to enter an email address again.