Re: --> Running shell script with python

2016-08-18 Thread Lutz Horn
Tell me, do you know how can i send CTRl+C command from python to terminate this external shell script ? os.system[1] is not an asynchronous function. It returns as soon as the called command terminates, not earlier. If you want to execute a command in a subprocess, use subprocess.Popen[2].

Re: --> Running shell script with python

2016-08-18 Thread gm
On 08/18/2016 11:16 AM, Lawrence D’Oliveiro wrote: On Thursday, August 18, 2016 at 8:00:51 PM UTC+12, gm wrote: os.system("python /home/pi/test/testserver.sh") command How to run shell ( not python ) script, from python code ? Take out the “python” from the command. :-) Damn :-). Thank you

Re: --> Running shell script with python

2016-08-18 Thread Lawrence D’Oliveiro
On Thursday, August 18, 2016 at 8:00:51 PM UTC+12, gm wrote: > os.system("python /home/pi/test/testserver.sh") command > > How to run shell ( not python ) script, from python code ? Take out the “python” from the command. -- https://mail.python.org/mailman/listinfo/python-list