| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
##Info run and stop an specified service with a time limit ##Usage
Install tcl environment (just tested in centos)
yum install tcl
Help info
Examples:
start a service and stop that at an specified time
nohup timeout_plus.tcl -P "watch date" -d 2015-01-12 -t 08:11 >/dev/null 2>&1 &
stop a service with an know pid at an specified time
nohup timeout_plus.tcl -p pid -d 2015-01-12 -t 08:11 >/dev/null 2>&1 &
stop a service in today some times
nohup timeout_plus.tcl -p pid -t 08:11 >/dev/null 2>&1 &
stop a service with an know service name at an specified time
nohup timeout_plus.tcl -n "watch date" -t 08:11 >/dev/null 2>&1 &
stop a service after run 5minutes
nohup timeout_plus.tcl -n "watch date" -r 5m >/dev/null 2>&1 &
| Back | FazBrowse Home | New Git URL |