in reply to Filename of parent script available?

There's nothing off the shelf, but you could always use getppid and one of the ps-ish modules (Proc::ProcessTable or GTop for example) to find it out.

Update: of course with the caveat that if the OS allows it the process name may have been changed; or someone nefarious could use symlinks and an intermediary exec even if it doesn't.

--
We're looking for people in ATL

Replies are listed 'Best First'.
Re^2: Filename of parent script available?
by Anonymous Monk on Jul 15, 2005 at 15:51 UTC
    Hmmm... Seems like the easiest thing is to just pass $0 as the first argument. Thanks for the tip though, I will have to check those out when I have more time.

    Greg