Hi Experts,
I want to call script_name.ksh as many time as id in customer table and also pass it as a parameter to script.
someting Like below.
for i in select id from customer
do
./script_name.ksh $i &
done
I have figured out how to have ID from customer but now how to call shell script within for loop. Kindly help.
sqlplus -s $ORA_CONN <<EOF
SET SERVEROUTPUT ON
SET FEED OFF
spool abc.txt
BEGIN
FOR i IN (SELECT ID FROM customer)
LOOP
DBMS_OUTPUT.put_line ( 'value ' || i.ID);
END LOOP;
END;
/
spool off
EOF
http://fedora.unix.com/images/misc/progress.gif
Now how to call script script_name.ksh within it.
Kindly help ASAP.