Best command for running shell command

iapain iapain at gmail.com
Tue Jul 11 11:05:52 EDT 2006


> where I'm not interested in the output, I only want to make sure that the
> command was executed OK. How should I invoke this (in a Unix/linux
> environment)?

Remember few things about executing program within python
1. Create a subprocess or child process and execute it.
2. You should use "Timeout stratagy" i.e your execution took more than
provided time then timeout this process. In linux/unix you may use
singnal alarm to implement it.

Best!




More information about the Python-list mailing list