Crontab not running bash script on reboot
by CharlieHotel from LinuxQuestions.org on (#4TK1X)
Hello.
I am trying to run a bash script whenever the computer reboots. I understand that @reboot <path_to_script> in the crontab will do this.
I put "@reboot /home/bin/wormy2" at the bottom line of my crontab.
/home/bin/wormy2 is my bash script. I know the bash script works and that it has executable permissions.
The errors I found in /var/log/syslog are
-------------------
Nov 2 17:30:30 mint cron[1421]: (CRON) INFO (pidfile fd = 3)
Nov 2 17:30:30 mint cron[1421]: (CRON) INFO (Running @reboot jobs)
Nov 2 17:30:30 mint CRON[1469]: (root) CMD (/home/bin/wormy2)
Nov 2 17:30:30 mint CRON[1464]: (CRON) info (No MTA installed, discarding output)
-------------------
I don't know what this means. Can someone help me know what I need to do to get my crontab working?
Thank you!


I am trying to run a bash script whenever the computer reboots. I understand that @reboot <path_to_script> in the crontab will do this.
I put "@reboot /home/bin/wormy2" at the bottom line of my crontab.
/home/bin/wormy2 is my bash script. I know the bash script works and that it has executable permissions.
The errors I found in /var/log/syslog are
-------------------
Nov 2 17:30:30 mint cron[1421]: (CRON) INFO (pidfile fd = 3)
Nov 2 17:30:30 mint cron[1421]: (CRON) INFO (Running @reboot jobs)
Nov 2 17:30:30 mint CRON[1469]: (root) CMD (/home/bin/wormy2)
Nov 2 17:30:30 mint CRON[1464]: (CRON) info (No MTA installed, discarding output)
-------------------
I don't know what this means. Can someone help me know what I need to do to get my crontab working?
Thank you!