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].
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
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