deibyz has asked for the wisdom of the Perl Monks concerning the following question:
I'm working in an error report script that must send a mail to a mail group when any of the scripts associated to it fail. It's currently working, but I would like to add the script name that failed as the subject of the mail. The script is called with a system() call.
Is there any way to know the name of the caller process? (I'm working in an UNIX evironment) I've thought in passing name as a param, but this would mean change about 30 different scripts 8(.
Thanks in advance,
deibyz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Parent process name
by Abigail-II (Bishop) on May 28, 2004 at 13:43 UTC | |
Re: Parent process name
by gsiems (Deacon) on May 28, 2004 at 13:48 UTC | |
by deibyz (Hermit) on May 28, 2004 at 15:08 UTC | |
by gsiems (Deacon) on May 28, 2004 at 16:55 UTC | |
by meetraz (Hermit) on May 28, 2004 at 19:06 UTC | |
by Anonymous Monk on Jun 03, 2013 at 15:12 UTC | |
Re: Parent process name
by PodMaster (Abbot) on May 28, 2004 at 13:23 UTC |