view sources/ @ 962:3d2261361009

Remove the --extract option from, since EXTRACT_ALL=1 does the same thing and everything _else_ is controlled by environment variables. At it to the config file and adjust existing users.
author Rob Landley <>
date Mon, 01 Feb 2010 03:46:49 -0600
parents 2ca7ea5d3ec1
line wrap: on
line source


# Run a command line with a hang timeout, which kills the child process if it
# doesn't produce a new line of output for $1 seconds.

# This script has to be a separate process (rather than just a shell function)
# so killing it doesn't kill the parent process.

source sources/

if [ $# -lt 1 ]
  echo "Need timeout value" >&2
  exit 1

trap "killtree $$" EXIT
( "$@" ) | tee >(while read -t "$TIMEOUT" -n 32 i; do true; done; sleep 1; kill -TERM $$ 2>/dev/null )