Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PIDs = ps.Processes() // slice of current Linux procsaPID = PIDs[0] // pid 1
- aPID.Pid() // returns 1 cause pid 1 right
- aPID.PPid() // parent pid int
- aPID.Executable() // name of exe that spawned (string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement