February 2018
Intermediate to advanced
340 pages
9h 43m
English
package main import ( "fmt" "os" "os/exec" "strconv" ) func main() { pid := os.Getpid() fmt.Printf("Process PID: %d \n", pid) prc := exec.Command("ps", "-p", strconv.Itoa(pid), "-v") out, err := prc.Output() if err != nil { panic(err) } fmt.Println(string(out)) }

Read now
Unlock full access