On Thursday 07 October 2004 09:47, Michael Petch wrote: > unless I misunderstood the question, and this was linux - try: > > getpid()
that gets the program its own PID. i think Evan is looking for something like pidof(8) i'd suggest grabbing busybox which has a short 'n sweet implementation of pidof... it relies on reading /proc entries, and so only works on UNIX/Linux and sufficiently similar OSes. /me takes a look.. the relevant files are libbb/procps.c and libbb/find_pid_by_name.c -- Aaron J. Seigo GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 _______________________________________________ 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

