HalNineThousand has asked for the wisdom of the Perl Monks concerning the following question:
I know I can use various tricks so a Perl script can find its own location and that I can use @ARGV to get command line arguments. What I can't find is a way for a script to get the entire command line used to run it, including IO redirection and so on.
Is there a way to get the full command line used to run a Perl script?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get Entire Command Line of a Program
by Corion (Patriarch) on Oct 14, 2010 at 20:17 UTC | |
|
Re: Get Entire Command Line of a Program
by ikegami (Patriarch) on Oct 14, 2010 at 21:17 UTC | |
|
Re: Get Entire Command Line of a Program
by mr_mischief (Monsignor) on Oct 14, 2010 at 21:12 UTC | |
|
Re: Get Entire Command Line of a Program
by kcott (Archbishop) on Oct 20, 2010 at 03:14 UTC | |
|
Re: Get Entire Command Line of a Program
by HalNineThousand (Beadle) on Oct 20, 2010 at 01:18 UTC | |
by BrowserUk (Patriarch) on Oct 20, 2010 at 01:48 UTC | |
by HalNineThousand (Beadle) on Oct 20, 2010 at 02:11 UTC | |
|
Re: Get Entire Command Line of a Program
by aquarium (Curate) on Oct 15, 2010 at 05:03 UTC |