RE: [Perl-unix-users] Determining the Calling Program

2004-04-07 Thread Thomas, Mark - BLS CTR
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

Re: [Perl-unix-users] Determining the Calling Program

2004-04-07 Thread $Bill Luebkert
[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