![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| SQL Select and awk | habuzahra | Shell Programming and Scripting | 6 | 11-26-2008 01:44 AM |
| select function | nagalenoj | High Level Programming | 0 | 06-10-2008 06:42 AM |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 08:30 AM |
| Want to use the output of Select statement in Unix script | akhilgoel9 | Windows & DOS: Issues & Discussions | 4 | 05-27-2005 10:52 AM |
| select() and read() | jnuno | High Level Programming | 2 | 11-19-2002 02:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi,
i need to use the output of select query. the output i get using "X=`sqlplus -s $var1/$var1<<eof select port from table1;` echo $X " is "port ----- 2000" now i want to use only 2000 in my next command. hw do i do it? |
|
||||
|
Use
SET HEADING OFF; This statement should be immediately after you login to sql. Ideally this is the way it has to look. "X=`sqlplus -s $var1/$var1<<eof SET HEADING OFF; select port from table1;` echo $X " Let us know if this worked or not.. |
|
||||
|
using o/p of select.
thanks a lot helper..
Actually i need two different ports from two different tables. if i use the earlier script, echo $X shows two ports. but the next netstat command uses only the first port. hw can i use the result of echo $x ,say 2000 2001 in netstat command ,to chk whether they r up? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|