[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loading lua scripts relative to an app's path
- From: Mike Pall <mikelu-0610@...>
- Date: Sat, 7 Oct 2006 13:16:14 +0200
Hi,
Adrian Perez wrote:
> snprintf(sym, "/proc/%i/exe", getpid());
Umm, better use: /proc/self/exe
On FreeBSD try: /proc/curproc/file (it may return "unknown" though)
Bye,
Mike