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
In reply to Parent process name by deibyz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |