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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -