> I would like to execute shell commands, but only if their execution
> time is not longer than n seconds. Like so:
See example at http://docs.python.org/library/signal.html#example
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 16, 11:34 am, Alain Ketterlin
wrote:
> Jaroslav Dobrek writes:
> > I would like to execute shell commands, but only if their execution
> > time is not longer than n seconds. Like so:
>
> > monitor(os.system("do_something"), 5)
>
> > I.e. the command do_somthing should be executed by the op
Jaroslav Dobrek writes:
> I would like to execute shell commands, but only if their execution
> time is not longer than n seconds. Like so:
>
> monitor(os.system("do_something"), 5)
>
> I.e. the command do_somthing should be executed by the operating
> system. If the call has not finished after 5
On Mon, Apr 16, 2012 at 10:51 AM, Jaroslav Dobrek
wrote:
>
> Hello,
>
> I would like to execute shell commands, but only if their execution
> time is not longer than n seconds. Like so:
>
> monitor(os.system("do_something"), 5)
>
> I.e. the command do_somthing should be executed by the operating
>
Hello,
I would like to execute shell commands, but only if their execution
time is not longer than n seconds. Like so:
monitor(os.system("do_something"), 5)
I.e. the command do_somthing should be executed by the operating
system. If the call has not finished after 5 seconds, the process
should b