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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command line arguments

Status
Not open for further replies.

dechrist

Programmer
Sep 24, 2008
10
US
I want to use command line arguments to pass the user name and password to bteq, fastload, multiload, etc. scripting. Does anyone have a good example how to do?

Thanks in advance.
 
Write the following code in the any file.

bteq << EOI
.logon $1/$2,$3
.quit;
EOI


this uses command line arguments and logon to and logoff from database through bteq.
please let me know if this your requirement is different from this.

run the script as
sh <filename> <tdpid> <username> <password>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top