Hi,
I am new to the Perl environment. I am trying to call a Unix shell script from a Perl CGI script. I need to pass 13 parameters to the Unix Shell Script.
Things I Do Know:
1) How to use 'shell()' function in Perl
My question:
1) How do I pass parameters from a Perl script inside the shell function?
eg) my $cmd = system('ex3.cgi $userLogin $userPwd');
Like I said, ex3.cgi is a unix shell script. $userLogin & $userPwd are scalar variables in perl with some string value. These parameters should be passed onto $1 and $2 in the unix shell script (ex3.cgi).
P.S: The above command works fine if I use literal strings instead of the variables.
Kindly help me if someone knows the solution.
Thank You.
I am new to the Perl environment. I am trying to call a Unix shell script from a Perl CGI script. I need to pass 13 parameters to the Unix Shell Script.
Things I Do Know:
1) How to use 'shell()' function in Perl
My question:
1) How do I pass parameters from a Perl script inside the shell function?
eg) my $cmd = system('ex3.cgi $userLogin $userPwd');
Like I said, ex3.cgi is a unix shell script. $userLogin & $userPwd are scalar variables in perl with some string value. These parameters should be passed onto $1 and $2 in the unix shell script (ex3.cgi).
P.S: The above command works fine if I use literal strings instead of the variables.
Kindly help me if someone knows the solution.
Thank You.