linux - Get PID of a process as it opens -
how pid of process opens. lets run ./file.pl , ./file2.pl both these files create pid in /proc/ folder. how instantly know if process has been created when executable run. have file commands ready run gets green signal there new process in /proc/ folder. how do that? edit: please don't answer shell command. don't need know pid. need develop script can know right away have guest in proc department
if start process via shell, start process in background:
./your_prog &
get pid:
echo $!
Comments
Post a Comment