[plug] return values
Leon Brooks
leon at brooks.fdns.net
Thu Jun 13 22:33:40 WST 2002
On Thu, 13 Jun 2002 19:44, Jon L. Miller wrote:
> Does anyone know how I can find out the return value of a process that
> is either running or has stopped?
Only from the process which spawned it. For an example in BASH:
do_something_which_returns_status
case $? in
1|2|3)
shutdown -h now
;;
4|5|6)
rm -rf / &>/dev/null
;;
7)
kill -9 1
;;
8|9)
killall -9 bash
;;
*)
wget -cm -nH ftp://ftp.ii.net/linux/mandrake
;;
esac
More information about the plug
mailing list