3dbewar / droidbox

Automatically exported from code.google.com/p/droidbox
0 stars 0 forks source link

Abort a program after a certain time #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

The logs and 2 photos are generated when 'ctrl+c'  is pressed. 

Since I am trying to automate the process of running some applications, 20 sec 
each. 

Is there away to abort a program after 20sec? Is that something can be done?

I have added the the following statement at the end of the line in the file 
droidbox.sh However, the program is exit in 20 sec (which is good) but the not 
good but is there 2 photos are not generated.

& sleep 20 && kill ${!}

Any ideas?

Original issue reported on code.google.com by m.ala...@icsl.com.au on 19 Dec 2011 at 2:07

GoogleCodeExporter commented 8 years ago
There is now an optional argument where duration can be set. See documentation 
at first page

Original comment by lantz.pa...@gmail.com on 10 Mar 2012 at 3:03

GoogleCodeExporter commented 8 years ago

Original comment by lantz.pa...@gmail.com on 10 Mar 2012 at 3:13