unless I misunderstood the question, and this was linux - try:

getpid()


On Thu, 2004-10-07 at 10:23, Evan Brown wrote:
> Hi
> 
> I need to get a processs ID for any program from within a program. Any C 
> coders out there that can send me a code snippet or point me in the 
> right direction.
> 
> Thanx
> Evan Brown
> 
> 
> _______________________________________________
> clug-talk mailing list
> [EMAIL PROTECTED]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
-- 
Mike Petch
CApp::Sysware Consulting Ltd.
Suite 1002,1140-15th Ave SW.
Calgary, Alberta, Canada.
T2R 1K6.
(403)804-5700.


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to