I currently have a shell script that I manage to execute without cron using 'sh runScript' to run it whilst in the same folder. It's located in my root folder. To try and get cron to run it at start-up I input:
@reboot sh runScript
into the file and saved it. I then did a reboot however I'm certain it isn't running. I tried doing @reboot echo "hello world" and that also did not execute correctly. I feel like this has something to do with paths. Any suggestions?
EDIT: I should probably mention I'm using Alpine. I have also changed the top line of my script to be #!/bin/sh now instead of #!/bin/bash so that I can run it using the filename.
echo
didn't work? Did you check your local mail?echo
doesn't usually take long enough to hang around in the process list.