rendered paste bodyroot@plug:~# ./test.sh
+ CRONCMD=/root/plugremote.sh
+ CRONJOB='*/5 * * * * /root/plugremote.sh'
+ echo ========================================================
========================================================
+ echo ' add this to the crontab: '
add this to the crontab:
+ echo '*/5 * * * * /root/plugremote.sh'
*/5 * * * * /root/plugremote.sh
+ echo ========================================================
========================================================
./test.sh: line 10: syntax error near unexpected token `('
./test.sh: line 10: `cat < (fgrep -i -v "${CRONCMD}" <(crontab -l)) < (echo "${CRONJOB}") | crontab -'
root@plug:~#