Answers for "edit crontab with script"

0

change crontab editor

#run command in terminal:
select-editor

#Then select an option:
Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.tiny
  3. /bin/ed

Choose 1-3 [1]:
Posted by: Guest on September-09-2020
0

linux edit crontab via script

(crontab -l 2>/dev/null; echo "*/5 * * * * /path/to/job -with args") | crontab -
Posted by: Guest on August-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language