Hello, I wan't to edit my crontrab in order to add one simple script, but I'm really unfamilir with vi or vim and already forgot how to exit from it few times (can't rememer how many), so using
crontab -e
is not the way for me, so I've tried to change my EDITOR variable to nano from my current fish shell but I faced something unpredictable and tried to do this from BASH then but also crushed. Please help me with the link to appropriate docs or explain why and what should I do just to have comfort with crontab.
Code:
root@OffGateway /u/l/monitor# set -gx EDITOR fish
root@OffGateway /u/l/monitor# crontab -e
/tmp/crontab.3tMac2kHNW (line 1): No matches for wildcard '*/30 * * * * /usr/local/bin/php /root/jobs/backup_blog.php >/dev/null 2>&1'. See `help expand`.
*/30 * * * * /usr/local/bin/php /root/jobs/backup_blog.php >/dev/null 2>&1
^
fish: Unknown command: 0
/tmp/crontab.3tMac2kHNW (line 2):
0 0 1 * * /bin/rm /root/bckups/* >/dev/null 2>&1
^
fish: Unknown command: bck
/tmp/crontab.3tMac2kHNW (line 3):
* * * * * bash /usr/local/monitor/ping_service.sh >/dev/null 2>&1
^
crontab: "fish" exited with status 127
root@OffGateway /u/l/monitor [1]# bash
[root@OffGateway /usr/local/monitor]# set EDITOR=nano
[root@OffGateway /usr/local/monitor]# crontab -e
/tmp/crontab.xjEDTeuZ7v (line 1): No matches for wildcard '*/30 * * * * /usr/local/bin/php /root/jobs/backup_blog.php >/dev/null 2>&1'. See `help expand`.
*/30 * * * * /usr/local/bin/php /root/jobs/backup_blog.php >/dev/null 2>&1
^
fish: Unknown command: 0
/tmp/crontab.xjEDTeuZ7v (line 2):
0 0 1 * * /bin/rm /root/bckups/* >/dev/null 2>&1
^
fish: Unknown command: bck
/tmp/crontab.xjEDTeuZ7v (line 3):
* * * * * bash /usr/local/monitor/ping_service.sh >/dev/null 2>&1
^
crontab: "fish" exited with status 127
[root@OffGateway /usr/local/monitor]#