Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters from shell script

Status
Not open for further replies.

jhammer98

Programmer
Apr 21, 2005
24
0
0
US
Hi,

I have created a package containing several procedures. I wish to call them from shell scripts passing unix variables as parameters but I'm not sure if this will work. Does anybody have any experience with something like this? My code follows:

...
sqlplus / << EOM
set serveroutput on size 1000000
whenever sqlerror exit failure rollback
execute omni_processing.delete_processed_data($SOURCE,'T');
EOM
...

$SOURCE is visible from within the shell script, my question is will it make it to the procedure?

Thanks in advance...

~Jhammer
 
ok...it needed some help $SOURCE had to be enclosed by 3 single quotes...

execute omni_processing.delete_processed_data('''$SOURCE''','T');

Thanks for reading anyway...

~Jhammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top