in reply to Re: command timeout not working
in thread command timeout not working

but what about $command?
how does that fit into the picture with this solution?
the goal was that if $command does not complete with in a certain amount of time it times out.

Replies are listed 'Best First'.
Re: Re: Re: command timeout not working
by dave_the_m (Monsignor) on May 14, 2004 at 14:44 UTC
    I wasn't presenting a solution; I was just demonstating that if the command happens to be a simple UNIX process that hangs, your code does in fact correctly timeout (for me at least). You could take this as a starting point; firstly, does your code timeout for you too if you replace the command with a simple sleep? And if so, what is the diffence in behaviour between your command and the UNIX 'sleep' command that causes one to fail and not the other? Investigating that difference may lead to further clues.