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-users] Determining the Calling Program > > > 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 > > > --Jimmy > > > > =+=+=+=+=+=+=+=+=+=+ > James Schappet > Schappet.com > > > > _______________________________________________ > Perl-Unix-Users mailing list [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs