K
kimberly.shaffer
I have a batch script I would like to convert to Perl, but I'm having a
really hard time understanding how command line arguments work.
For instance:
set tempfile=IDM.sql
echo set verify off>>%tempfile%
echo set feedback off>>%tempfile%
echo set termout off>>%tempfile%
echo spool %1>>%tempfile%
echo %2>>%tempfile%
echo spool off>>%tempfile%
echo quit>>%tempfile%
sqlplus -s schema/pw@instance @%tempfile%
rem if exist %tempfile% del %tempfile%
This starts a file, I echo command line arguments into it, it wraps it
up into a sql file and then I use sqlplus to execute it and return the
results.
%1=output file
%2=select statement string
I am not even sure where to begin, but thought I would put this simple
script out here, hoping someone would translate into Perl for me, and
then maybe I could try and figure out how it worked, since I know how
batch files work.
thanks so much in advance
really hard time understanding how command line arguments work.
For instance:
set tempfile=IDM.sql
echo set verify off>>%tempfile%
echo set feedback off>>%tempfile%
echo set termout off>>%tempfile%
echo spool %1>>%tempfile%
echo %2>>%tempfile%
echo spool off>>%tempfile%
echo quit>>%tempfile%
sqlplus -s schema/pw@instance @%tempfile%
rem if exist %tempfile% del %tempfile%
This starts a file, I echo command line arguments into it, it wraps it
up into a sql file and then I use sqlplus to execute it and return the
results.
%1=output file
%2=select statement string
I am not even sure where to begin, but thought I would put this simple
script out here, hoping someone would translate into Perl for me, and
then maybe I could try and figure out how it worked, since I know how
batch files work.
thanks so much in advance