M
Mohsin
Hi all,
I have a perl program which makes a user exit to the O/S (unix, solaris)
to issue a O/S command. I know that the shell it invokes is NOT a
korn shell, because I captured the shell info into a file with a
'ps' command. My question is "How to explicitly specify a Korn shell to
be used by perl?"
Eg of my perl code:
## Begin code snippet..
$cmd = "ps > msgfile ";
open( OUT, "| $cmd ");
close (OUT);
## End code snippet.
....After this piece of code there is a 'msgfile' created and its
contents are:
PID TTY TIME CMD
5528 pts/3 0:00 ksh
5584 pts/3 0:00 trial.pl
5585 pts/3 0:00 sh
The 1st line is my session (korn). The 3rd line is the shell (NOT KORN!)
that PERL invoked to run the process in the 2nd line (trial.pl)
Please help.
regards
Mq
I have a perl program which makes a user exit to the O/S (unix, solaris)
to issue a O/S command. I know that the shell it invokes is NOT a
korn shell, because I captured the shell info into a file with a
'ps' command. My question is "How to explicitly specify a Korn shell to
be used by perl?"
Eg of my perl code:
## Begin code snippet..
$cmd = "ps > msgfile ";
open( OUT, "| $cmd ");
close (OUT);
## End code snippet.
....After this piece of code there is a 'msgfile' created and its
contents are:
PID TTY TIME CMD
5528 pts/3 0:00 ksh
5584 pts/3 0:00 trial.pl
5585 pts/3 0:00 sh
The 1st line is my session (korn). The 3rd line is the shell (NOT KORN!)
that PERL invoked to run the process in the 2nd line (trial.pl)
Please help.
regards
Mq