mirror of https://github.com/dnomd343/XProxy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
380 B
24 lines
380 B
1 year ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"XProxy/next/process"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
//cmd := exec.Command("ls", "-al")
|
||
|
//cmd.Stdout = os.Stdout
|
||
|
//cmd.Stderr = os.Stderr
|
||
|
//err := cmd.Start()
|
||
|
//fmt.Println(err)
|
||
|
//err = cmd.Wait()
|
||
|
//fmt.Println(err)
|
||
|
|
||
|
p := process.NewDaemon("demo", []string{"sleep", "3"}, map[string]string{"DEBUG": "TRUE"})
|
||
|
p.Start()
|
||
|
|
||
|
time.Sleep(10 * time.Second)
|
||
|
|
||
|
}
|