site  contact  subhomenews

Busybox timeout commandline change breaks scripts

December 05, 2020 — BarryK

Forum member 'rooftop' reported that the 'timeout' executable does not accept the "-t <seconds>" on the commandline:

https://easyos.org/forum/showthread.php?tid=270

I checked Busybox in the EasyOS 2.5.1:

# timeout --help
BusyBox v1.32.0 (2020-07-17 22:02:53 AWST) multi-call binary.

Usage: timeout [-s SIG] SECS PROG ARGS

Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
Default SIG: TERM.

Hmmm, ok, found an older version of Busybox:

# ./busybox timeout --help
BusyBox v1.21.0 (2013-02-17 15:42:16 UTC) multi-call binary.

Usage: timeout [-t SECS] [-s SIG] PROG ARGS

Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
Defaults: SECS: 10, SIG: TERM.

The busybox developers have changed it to conform with the 'timeout' utility in 'coreutils' package:

https://man7.org/linux/man-pages/man1/timeout.1.html

I fixed these scripts:

/usr/local/EasyShare/easyshare
/etc/init.d/cups-net-fix
'rooftop', thanks for finding that! 

Tags: easy