HalNineThousand has asked for the wisdom of the Perl Monks concerning the following question:
I have a master Perl script that will run a number of slave Perl scripts, but while debugging, I may be running some of the slave scripts from the console.
Is there any way a Perl script can tell if it was run from within another script through the system() command (or using backtick quotes) instead of being run from the command line (or vice versa)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How Was My Script Run?
by JavaFan (Canon) on Mar 15, 2011 at 07:22 UTC | |
|
Re: How Was My Script Run?
by cdarke (Prior) on Mar 15, 2011 at 09:21 UTC | |
by Anonymous Monk on Mar 15, 2011 at 10:56 UTC | |
by HalNineThousand (Beadle) on Mar 15, 2011 at 16:11 UTC | |
by Anonymous Monk on Mar 15, 2011 at 16:18 UTC | |
by TomDLux (Vicar) on Mar 15, 2011 at 19:06 UTC | |
|
Re: How Was My Script Run?
by Anonymous Monk on Mar 15, 2011 at 06:52 UTC | |
by HalNineThousand (Beadle) on Mar 15, 2011 at 06:59 UTC | |
by Anonymous Monk on Mar 15, 2011 at 07:44 UTC | |
by HalNineThousand (Beadle) on Mar 15, 2011 at 16:17 UTC |