in reply to How to Find the Script that Called it
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Find the Script that Called it
by bichonfrise74 (Vicar) on Dec 18, 2008 at 01:16 UTC | |
by runrig (Abbot) on Dec 18, 2008 at 01:42 UTC | |
by bichonfrise74 (Vicar) on Dec 18, 2008 at 01:59 UTC |