The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
trying to create a script with multiple variables... Italy87 UNIX Desktop for Dummies Questions & Answers 5 03-21-2008 11:09 AM
How to pass variables to FUNCTION ? bh_hensem Shell Programming and Scripting 5 05-30-2007 11:54 PM
How to pass CSH variables up to the parent? ElCaito Shell Programming and Scripting 0 11-29-2006 11:30 PM
how to pass variables surrounded in double quotes to awk? cruiser AIX 4 03-24-2006 02:12 PM
How to pass Shell variables to sqlplus use them as parameters Jtrinh Shell Programming and Scripting 1 07-13-2005 01:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-22-2002
Registered User
 

Join Date: Oct 2002
Location: Auckland, NZ
Posts: 49
Pass multiple variables to SQL script

I am trying to close of multiple users in an Oracle database. Each users has records in multiple tables what I need to do is use a script that call each SQL seperately passing either CLI arguments or gathered arguments from the users during run time.

## Accept variable(s) from the command line
while test $1
do
set emp_id = $1
echo "Enter Expiry Date: \c"
read exp_dt
echo "Enter Effective Date: \c"
read eff_dt
$HOME/sql_files/close_c.ksh $exp_dt $emp_id $eff_dt
shift

done

Any ideas will be appreciated.
Reply With Quote
Forum Sponsor
  #2  
Old 10-25-2002
Registered User
 

Join Date: Jul 2002
Location: Belgium
Posts: 20
Dear,

Could you refrase your question cause I'm not sure what you want to do. Probably I can help.

Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0