Crontab don't execute bash script at reboot

Applications, development tools, FPGA, C, WEB
Post Reply
azahonero
Posts: 5
Joined: Thu Oct 14, 2021 8:06 am

Crontab don't execute bash script at reboot

Post by azahonero » Fri May 13, 2022 8:43 am

Hi all,

I've encountered a problem trying to use crontab in my RPs. I have multiple python and c files that I achieved to make work, and I use a bash script to execute all of them in my desired order. The point is that I need this .sh to execute at boot, so I've installed crontab and try to use it to execute my bash script at boot. I checked that the bash script and all the other scripts work cause if I do:
sh /home/atreboot.sh
Which contain my sequence of executables, it all works. But in crontab I tried:

@reboot /bin/sh /home/atreboot.sh

@reboot sh /home/atreboot.sh

And it doesn't execute anything at boot. I've checked the permissions and everything has execute permission. The crontab service is enabled too. Any idea why this doesn't work?

Thank you all

User avatar
redpitaya
Site Admin
Posts: 883
Joined: Wed Mar 26, 2014 7:04 pm

Re: Crontab don't execute bash script at reboot

Post by redpitaya » Thu Jun 02, 2022 8:31 am

Sorry, we do not know why this is. Maybe ask also on some Linux forums.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 19 guests