# exec **Repository Path**: gricks/exec ## Basic Information - **Project Name**: exec - **Description**: exec infomation - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # exec exec infomation & kill signal to process # Example ```golang package main import ( "flag" "fmt" "os" "syscall" "time" "gitee.com/gricks/exec" ) var ( signal string ) func init() { flag.StringVar(&signal, "s", "", "send signal") flag.Parse() switch signal { case "stop": exec.Kill(syscall.SIGTERM) os.Exit(0) default: } } func main() { info, err := exec.GetExecInfo() if err != nil { panic(err) } fmt.Println(info) time.Sleep(10000 * time.Second) } ```