timeout applet (adding) patch
Roberto A. Foglietta
me at roberto.foglietta.name
Fri Feb 3 10:20:05 UTC 2006
Hi,
available in the BUG-TRAQ as new feature:
http://bugs.busybox.net/view.php?id=680
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
It applies and compile sagainst SVN 13802.
[roberto at wsraf busybox]$ size libbb/talarm.o
text data bss dec hex filename
1183 20 12 1215 4bf libbb/talarm.o
[roberto at wsraf busybox]$ size miscutils/timeout.o
text data bss dec hex filename
894 24 12 930 3a2 miscutils/timeout.o
Cheers,
--
Roberto A. Foglietta
http://www.roberto.foglietta.name
SkypeNick: robang74
ICQ#: 108718257
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout_applet.tgz
Type: application/x-compressed
Size: 5439 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060203/75070676/attachment.bin
More information about the busybox
mailing list