[BusyBox 0000680]: timeout applet (new feature)

bugs at busybox.net bugs at busybox.net
Tue Apr 1 09:55:24 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=680 
====================================================================== 
Reported By:                robang74
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   680
Category:                   New Features
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-03-2006 02:18 PST
Last Modified:              04-01-2008 02:55 PDT
====================================================================== 
Summary:                    timeout applet (new feature)
Description: 
Puts in run a command line and if it does not terminate within a           
                                                          specified timeout
it signal with a specified signal the commands and all its children. In
both case report the exit status of the command and it is able to save it
also in a file which could after read by a script or other command. It
does NOT need /proc mounted.                                              
                         

[roberto at wsraf busybox]$ ./busybox timeout --help
BusyBox v1.1.1-pre0 (2006.02.03-09:48+0000) multi-call binary

Usage: timeout [-v] <timeout_in_sec> [-f exit_status_file] [-s int_signal]
"<command line>"

Runs the "command line" within a timeout window and returns its status.
Options:
        -v      Displays verbose resource usage information
        -f      File name in which save the exit status
        -s      Signal to send to the command line and its children 
                after timeout expired






 
                                                                          
                                    

====================================================================== 

---------------------------------------------------------------------- 
 robang74 - 07-11-06 01:18  
---------------------------------------------------------------------- 
Applet version 0.2.7 applies against busybox v1.1.3, changelog:

a) http://busybox.net/bugs/view.php?id=471#600bytes less than previous applet
version
b)     1 bug less than previous applet version
c)     added regression test in testsuite     

[roberto at GEDX0327 busybox-1.1.3]$  size libbb/talarm.o
   text    data     bss     dec     hex filename
   1176      20      12    1208     4b8 libbb/talarm.o

[roberto at GEDX0327 busybox-1.1.3]$ size miscutils/timeout.o
   text    data     bss     dec     hex filename
    316      24       0     340     154 miscutils/timeout.o


Some options have been removed, now this applet is easier to use:

[roberto at GEDX0327 busybox-1.1.3]$ busybox timeout
USAGE: timeout <timeout_in_sec> [-s int_signal] "<command line>"

[roberto at GEDX0327 busybox-1.1.3]$ busybox timeout --help
BusyBox v1.1.3 (2006.07.11-08:14+0000) multi-call binary

Usage: timeout <seconds> [-s signal] "<command line>"

Runs the "command line" within a timeout window and returns its status.
Options:
        -s      Number of signal to the command and its children when
timeout expires

 

---------------------------------------------------------------------- 
 vda - 04-01-08 02:55  
---------------------------------------------------------------------- 
Timeout after process ate N seconds of CPU time: softlimit -t N <cmd>
[<args>]

Example:

softlimit -t 5 ash -c 'while true; do true; done' 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-03-06 02:18  robang74       New Issue                                    
02-03-06 02:18  robang74       Status                   new => assigned     
02-03-06 02:18  robang74       Assigned To               => BusyBox         
02-03-06 02:18  robang74       File Added: timeout_applet.tgz                   

02-03-06 02:18  robang74       Issue Monitored: robang74                    
07-11-06 01:08  robang74       Note Added: 0001515                          
07-11-06 01:08  robang74       File Added: timeout_applet-0.2.7.tar.bz2         
          
07-11-06 01:15  robang74       Note Edited: 0001515                         
07-11-06 01:18  robang74       Note Edited: 0001515                         
04-01-08 02:55  vda            Note Added: 0006264                          
======================================================================




More information about the busybox-cvs mailing list