Article 4QQHC pid

pid

by
lelunicu
from LinuxQuestions.org on (#4QQHC)
hi,
i like to find the pid of every command in a linux script.

let`s say:

cat y;where y is the script name
sleep 10
find /

how can i find the pid of sleep and the pid of find when i run the script?latest?d=yIl2AUoC8zA latest?i=IxVs80k8AbQ:RelMbkxyjxI:F7zBnMy latest?i=IxVs80k8AbQ:RelMbkxyjxI:V_sGLiP latest?d=qj6IDK7rITs latest?i=IxVs80k8AbQ:RelMbkxyjxI:gIN9vFwIxVs80k8AbQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments