(crontab -l 2>/dev/null; echo "30 10 * * * /bin/bash /root/folderpath/script.sh > /root/folderpath/scriptname.log 2>&1") | crontab -
above mentioned is sucessfull to add cron job in my opinion
(crontab -l 2>/dev/null; echo "30 10 * * * /bin/bash /root/folderpath/script.sh > /root/folderpath/scriptname.log 2>&1") | crontab -
above mentioned is sucessfull to add cron job in my opinion