Kill an automatic program at startup while it is running? - Raspberry Pi Forums


dear all,
wrote simple python program launched @ start (through rc.local, written before exit0 line) , records 10 hours of video. booted pi without monitor , using battery pack power supply. 10-hour video taken in 5-minute chunks, goal being count how many chunks pi able record before battery pack died.

videos recorded, access them see how many there are. , obviously, when boot pi visualize these videos, program runs on again , replaces previously-recorded videos.

furthermore won't go past next line:
[ok] starting avahi mdns/dns-sd daemon: avahi-daemon

question then: can kill program directly on pi while running?

tried read sd card on pc in order modify rc.local file , prevent program running again, files have access when that, not include need (see attached screenshot).
can do?

quite new rpi , unix, please patient ignorance. ;)

do want edit rc.local file pi? if so, can running command:

code: select all

sudo nano /etc/rc.local
if want edit rc.local file pc, it's little trickier. problem pc uses different file system linux (which uses ext4), means can't edit linux files windows or mac computer. if have old linux laptop best use that. if not, have 2 options.

if computer older , not powerful (and have 8gb or more usb drive) can use live dvd. live dvd download file ubuntu's website , put on usb drive (if can't figure out, here tutorial file: http://www.psychocats.net/ubuntu/getting, drag usb drive). follow instructions here: https://www.ubuntu.com/download/desktop ... ou-install it's slow use usb drive , if can i'd recommend 2nd option.

if computer fast enough can try using virtual machine. follow instructions here: http://www.psychocats.net/ubuntu/virtualbox then, go settings ubuntu machine go ports section. click on usb tab , check enable usb controller. next, click on button looks cable blue circle next it. here looks like: http://i.imgur.com/ajty1vr.png plug in sd card , should show up.

let me know if have problems.


raspberrypi



Comments