Linux限制Shell执行时间 timeout(){ waitfor=$1 shift command=$* $command & commandpid=$!kill -9 $commandpid >/dev/null 2>&1) & watchdogpid=$! niuyisheng 2010-12-18 11:45:00