Using cron on OpenWrt

What editor is used by default when executing "crontab -e " command?

OpenWrt uses vi as its default text editor:
https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#editing_files

1 Like

Is it possible to install nano editor?
...already found how to do it

opkg update
opkg install nano

Or use the web interface:
https://openwrt.org/docs/guide-user/base-system/cron#web_interface

1 Like

Thanks for answer. How to make nano default editor for crontab?

1 Like

You can change the default editor by specifying the EDITOR variable:
https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#profile_customization

2 Likes

I just didn't get, do I have to enter

export EDITOR=nano
EOF
. /etc/profile

after executing "cat << EOF >> /etc/profile.d/custom.sh"?

Copy-paste the whole block of code to the terminal.

1 Like

That worked.

1 Like

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.