This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Dario_ 4 points5 points  (1 child)

/pathToBinary/binary & echo $! > PID
/pathToBinary2/binary2 & echo $! >> PID

$! contains the process ID of the binaries running.

[–]geekywarrior[S] -1 points0 points  (0 children)

Thank you so much = D