|
NAMErunpause - run a program after a specified delaySYNOPSISrunpause [-hV] [-L label ] secs program [ args ... ]DESCRIPTIONrunpause sleeps for secs (or until interrupted by a signal), and then runs program with any arguments given in args.If secs is 0, runpause will pause forever, or until interrupted by a signal. If program does not contain a ``/'' slash character, runpause will perform a shell-like search for the executable using the PATH variable in the current environment. OPTIONS
EXAMPLESThe runpause utility may be used to hack a perpetrate(5) service out of what would normally be a system initialization:#!/bin/sh exec 2>&1 if test ${1} = 'start' ; then # startup network: echo "starting network ..." ifconfig ... # maintain persistent state for this service: exec runpause -L network 0 /bin/true fi if test ${1} = 'reset' ; then # take down network and whatever depends on it: echo "resetting network ..." ... fi ### EOF The author does not recommend this sort of thing and will never mention it again. EXIT STATUSrunpause exits with one of the following values:
AUTHORWayne Marshall, http://b0llix.net/perp/SEE ALSOruntools_intro(8), runargs(8), runargv0(8), runchoom(8), rundetach(8), rundeux(8), runenv(8), runfile(8), runlimit(8), runlock(8), runsession(8), runtool(8), runtrap(8), runuid(8), perpd(8), perpetrate(5)
Visit the GSP FreeBSD Man Page Interface. |