claudius has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I am wondering whether there is any control as to the shell within a system() invocation inside a perl script. More specifically, please look at the following code extract:
#!/bin/ksh . /env.ksh exec $PERL -w -x "$0" "$@" #!perl #line 6 ... system("shellFunction"); ...
The intent is to have the settings of env.ksh available for the invocation of shellFunction, i.e. shellFunction is defined in env.ksh. So far I only see a naked sh as the shell that tries to run shellFunction.
Thanks for the help, Claudius
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: shell within system() call
by almut (Canon) on Mar 19, 2010 at 19:53 UTC | |
by shmem (Chancellor) on Mar 19, 2010 at 20:51 UTC | |
by claudius (Initiate) on Mar 22, 2010 at 20:55 UTC | |
|
Re: shell within system() call
by ikegami (Patriarch) on Mar 19, 2010 at 20:36 UTC |