All you can do is get the parent process id and if that process is still running find out more. And most of more is probably system dependent.
Is there any sane reason you can't pass an argument or environment variable and use the (lack off) that to differentiate the behaviour? It would probably help testing too.
In reply to Re: How to Find the Script that Called it
by Joost
in thread How to Find the Script that Called it
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |