Even if you could send a break signal, it would go to a new shell that
os.system() invokes...
Perhaps you know or can get the ID of the process you want to signal, a
ctrl-c in a shell is equivalent to a SIGINT sent using os.kill()
Please anyone in the list correct me if there is something I missed or
misunderstand.
Hugo
Johan Geldenhuys wrote:
> Hi all,
> I send a command to os.system(cmd) and want to send a break signal in
> the same way. Is this possible? The break signal is ctrl c (^c).
> I tried this, but it didn't work: os.system('\x03') I think Hex 03 is
> the signal for ctrl c.
>
> Thanks,
>
>
> _______________________________________________
> Tutor maillist - [email protected]
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor