[NEW:2021-03-26] CLI/commandline to add a CRON within a script
While we all know how to add tasks using crontab -e or check current tasks using crontab -l, doing things this way can sometimes be a bit inconvenient (eg. if you’re mid-script). Adding via CLI can be done in the CentOS implementation like this … echo “* * * * * \$HOME/path/to/scriptOrApp.sh” >> /var/spool/cron/USERNAME; ……