Bash script not running on startup #571
kushagharahi
started this conversation in
General
Replies: 1 comment
-
Try calling the command in the cron file in
See if that works |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote this small script to feed motion detection alerts to my camera plugin. It works when I manually run it (
sh motionDetection.sh
)I named it
motionDetection.sh
and did achmod +x
to make it executable.I tried the follow methods of getting it to run on startup:
opt/wz_mini/etc/rc.local.d/motionDetection.sh
media/mmc/wz_mini/etc/rc.local.d/motionDetection.sh
opt/wz_mini/etc/configs/motionDetection.sh
and updating theCUSTOM_SCRIPT_PATH
config with that path (opt/wz_mini/etc/configs/motionDetection.sh
)What am I doing wrong? How can I view logs related to this?
Beta Was this translation helpful? Give feedback.
All reactions