Script in RC.Local issues - Raspberry Pi Forums
hi all,
have built pi wildlife/moment sensor camera , wanted scrip auto run drop in place, power , walk away (it runs via 12vdc battery run pi , ir led light array).
have added script rc.local using python /home/pi/script.py &
works - cannot stop enable pi booted either command line or gui !!
have edited this, how can remove or stop process? can see rc.local via winscp , can open cannot edit (i presume in use?).
ideas please?
have built pi wildlife/moment sensor camera , wanted scrip auto run drop in place, power , walk away (it runs via 12vdc battery run pi , ir led light array).
have added script rc.local using python /home/pi/script.py &
works - cannot stop enable pi booted either command line or gui !!
have edited this, how can remove or stop process? can see rc.local via winscp , can open cannot edit (i presume in use?).
ideas please?
i think cannot edit /etc/rc.local because connected user pi, not root. try rename /home/pi/script.py else instead. otherwise install putty alongside winscp on pc , able log in , run commands (including sudo) rather upload files.hewesy wrote:i can see rc.local via winscp , can open cannot edit (i presume in use?).
did include "&" on command in rc.local? if script running in background should not blocking rest of boot.
raspberrypi
Comments
Post a Comment