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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -