[Ilugc] timeout in shell command

  • From: eamitdey@xxxxxxxxx (Amit Dey)
  • Date: Sun Sep 9 18:06:41 2007

Assume that i have to execute a binary file 
  so i do
  ./binaryfilename
  Now there is a chance that the execution may run into an infinite loop.
   
  What i want is that if the execution has not completed in 10 seconds then it 
should be aborted and i should get some kind of signal for incomplete execution.
   
  any suggestions?

       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Other related posts: