Capturing a PID.

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: Don Harrop
Date:  
Nouveaux-sujets: Capturing a PID.
Sujet: Capturing a PID.
Does anyone have ideas on how to capture the pid of a program into a file as it starts up? When you execute your program with the "&" (background process) the shell spits out the process id but I can't seem to redirect that out put to a file. I don't want to use "pidof" after the fact either in case there is another process running with the same name.

Don