I need to set up a cron job that runs an executable compiled using gcc once every hour.
I logged in as root and typed crontab -e
Then I entered the following and saved the file.
0 * * * * /path_to_executable
However, the cron job does not work.
I see that when I type /...path_to_executable
I get a segmentation fault.
I can only execute the executable from the folder it is located in.
Is there a way I can solve this problem?