zenobi
Posts: 21
Joined: Sun Oct 27, 2013 2:19 am
Location: belgium

4 python programs - 1 raspi

Sat Oct 11, 2014 9:43 pm

hello

i have 1 raspberry pi and I made some cool projects and pythonprograms.
eg. : a program for decoding IR , a program with tcp client , a blinking led gpio , etcetera...



i want to use autoboot , thus that after restart of the raspi , each program does his job simulatious

what is the best solution for running al these programs?

option 1 : combine 4 python programs to 1 big program ? and how do i do this , because the decodingIR programs is waiting in a loop , until the infrared reciever recieves data ,
also the blinking led is a kind of loop
maybe is there a way to use interupt requests ?

option2 : just run each program with /etc/rc.local ??

option 3 ???

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: 4 python programs - 1 raspi

Sun Oct 12, 2014 2:17 am

Option 2 is smple and flexible, do that, only make a service for each.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Beginners”