All pastes #2108992 Raw Edit

Someone

public text v1 · immutable
#2108992 ·published 2012-02-02 10:08 UTC
rendered paste body
root@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:~#