![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script getting input from output | aspect_p | Shell Programming and Scripting | 1 | 03-11-2008 07:37 AM |
| Asking about shell script input output redirection | trivektor | Shell Programming and Scripting | 1 | 10-18-2006 02:13 AM |
| Shell script with input parameter | jhmr7 | UNIX for Dummies Questions & Answers | 1 | 07-13-2005 01:04 AM |
| Masking input in a shell script | Spetnik | UNIX for Dummies Questions & Answers | 2 | 12-29-2003 03:12 PM |
| single input shell script? | quipy | Shell Programming and Scripting | 1 | 10-03-2002 09:18 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Input to shell script
Hi,
I have 10 database instances runnning in one unix box. To connect to each database..i have to set the environment. I am trying to write a shell script to set my environment for database by just tying the oracle instance name After logging into the unix machine... i want to type the oracle instacne name and the environment needs to be set for the typed oracle instance How to pass an oracle instance name typed in the console to the shell script any idea? how to do this Is there any other way to do? $/u01/oracle/ORACLEINSTANCENAME Script: FILE_LOCATION=/etc/oratab dbname=awk 'BEGIN{FS=":"}{print $1}' < "$FILE_LOCATION" ) do #echo "USER #$n = $dbname" echo $dbname if [$dbname= passed_db_name] export ORACLE_SID=dbname done Many Thanks, Last edited by castlerock; 03-31-2006 at 12:59 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|