in reply to caller of perl script
With getppid you can the the PID of the parent process, which is often also the calling process.
Depending on your operating systems, there are probably ways to map that PID to a process name, which might or might not be related to the caller's name.
I'm curious, why do you need that? Maybe there's another way to achieve your goal in a different way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: caller of perl script
by Anonymous Monk on Jun 11, 2010 at 15:26 UTC | |
by moritz (Cardinal) on Jun 11, 2010 at 16:11 UTC | |
by jdrago999 (Pilgrim) on Jun 11, 2010 at 16:58 UTC | |
by BrowserUk (Patriarch) on Jun 11, 2010 at 17:04 UTC | |
by moritz (Cardinal) on Jun 11, 2010 at 17:05 UTC | |
by johngg (Canon) on Jun 11, 2010 at 17:09 UTC | |
by Anonymous Monk on Jun 16, 2010 at 00:16 UTC |