Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4824

Advanced users • Re: camera capture script to run during boot

$
0
0
Thank u for this ,but I want the code of image capture and saved in the specified folder should run during boot, how can we do this, this programs are been executable when raspberry pi boot up,please guide me for this script

Some options:
  • Modify your script to save to an absolute rather than a relative path ('/foo/bar/somefile' rather than 'somefile')
  • Change the cwd prior to running you script (e.g. for cron @reboot cd /somedirectory;/path/to/script)
  • Use a wrapper shell script to do the above. Call that script instead of the existing one. e.g.:

    Code:

    #!/bin/bashcd /somedirectory/path/to/script

For more you'll need to provide more info* but I'm not going to write your code (or your auto start code) for you.

*: start with exactly what you have tried, what is happenning, what you want to happen, which OS you are running, etc.

Statistics: Posted by thagrol — Tue Feb 13, 2024 12:47 pm



Viewing all articles
Browse latest Browse all 4824

Trending Articles