The perl builtin getppid() will get the parent's process ID. You can then
use /bin/ps to get other information you may want.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-us
[EMAIL PROTECTED] wrote:
> Is there anyway in Perl to determine which program called a perl script?
>
> Program A, runs script 1, script 1 prints, Running from Program A
>
> Program B, runs script 1, script 1 prints, Running from Program B
Depends on what you mean by run (system, ``, call includ