Page 1 of 1

4 python programs - 1 raspi

Posted: Sat Oct 11, 2014 9:43 pm
by zenobi
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 ???

Re: 4 python programs - 1 raspi

Posted: Sun Oct 12, 2014 2:17 am
by elatllat
Option 2 is smple and flexible, do that, only make a service for each.