![]() |
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 |
| Redirect Query o/p to variable | Swapna173 | UNIX for Dummies Questions & Answers | 2 | 08-01-2008 07:48 AM |
| need help in reading a output of a sql query in unix script | pharos467 | Shell Programming and Scripting | 8 | 07-01-2008 02:00 AM |
| To spool output from a database query | *Jess* | Shell Programming and Scripting | 0 | 04-07-2008 12:23 AM |
| script variable within a sql query | Sherry_Run | Shell Programming and Scripting | 1 | 12-12-2007 05:15 AM |
| sql query variable not exactly unix | MizzGail | Shell Programming and Scripting | 5 | 12-10-2002 03:03 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
add the output of a query to a variable to be used in another query
I would like to use the result of a query in another query. How do I redirect/add the output to another variable?
PHP Code:
host1 host2 host3 I would like to add the output to the variable $hosts something like this: $hosts = "host1,host2,host3" I plan to use $host in another query further down in the script. thanks & regards |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|