nuclearpond
Programmer
Hi,
There is a perl script on out server which is called by a C program.
The script is failing every time it hits a line like this
@ArrayName=`ls -l /opt/app/axsys/dbconfig`;
As you can see, all it is doing is an ls -l on the file, and storing the result in the array. The perl then goes on to check the ownership and privlages of the file. Bypassing this (as its not essential) means the script stops at the next similar line, eg:
@ArrayName=`/opt/app/oracle/product......./query.sql $OracleUser $OraclePassword $OracleService`
This time its loading the results of the sql script into the array, and I cant bypass this. It seems to be a problem with either arrays, or executing Unix shell commands from within the perl.
I'm running perl 5 on and HP-UX 11 server
There is a perl script on out server which is called by a C program.
The script is failing every time it hits a line like this
@ArrayName=`ls -l /opt/app/axsys/dbconfig`;
As you can see, all it is doing is an ls -l on the file, and storing the result in the array. The perl then goes on to check the ownership and privlages of the file. Bypassing this (as its not essential) means the script stops at the next similar line, eg:
@ArrayName=`/opt/app/oracle/product......./query.sql $OracleUser $OraclePassword $OracleService`
This time its loading the results of the sql script into the array, and I cant bypass this. It seems to be a problem with either arrays, or executing Unix shell commands from within the perl.
I'm running perl 5 on and HP-UX 11 server