One
obvious solution would be to copy your scripts into a subdirectory, called
subdir
in the
following example, and replace the originals with
links to a 'front end' script
comprising something like the following, where app_incr.pl is a script
that updates
a
table record for a supplied k
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
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
___