how to get process path?
Mike Rimkus
mike at delphi.bsd.uchicago.edu
Fri Aug 3 04:50:51 AEST 1990
I'm writing a program that needs to run another program in the same directory,
whatever directory that may be. Thus the first program needs to know for
certain the path by which it was executed.
argv[0] cannot be relied upon for this information: a person can set arg0 in
execl() to whatever he wants. How do I find the path?
If responding to the newsgroup, please Cc: to me, as I don't read the
newsgroup regularly.
More information about the Comp.unix.questions
mailing list