Exemplo n.º 1
0
func runAcStatic() {
	_, err := shcmd.RunWithin(config.Ac.Cmd, time.Duration(config.Ac.Timeout)*time.Hour)
	if err != nil {
		log.Fatal("run ac static task failed")
		return
	}
	collectAcStatic()
}
Exemplo n.º 2
0
func runWebproxyStatic() {
	_, err := shcmd.RunWithin(config.Webproxy.Cmd, time.Duration(config.Webproxy.Timeout)*time.Hour)
	if err != nil {
		log.Fatal("run webproxy static task failed")
		return
	}
	collectWebproxyStatic()
}