![]() |
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 |
| storing result of a command in variable | eltinator | Shell Programming and Scripting | 1 | 04-17-2008 08:09 PM |
| How to get a result of a cmd into variable? | manchau | UNIX and Linux Applications | 1 | 03-06-2008 07:36 AM |
| Problem storing SSH result in a variable | prash184u | Shell Programming and Scripting | 1 | 01-17-2008 04:41 PM |
| cree a variable from a commande result | kykyboss | Shell Programming and Scripting | 3 | 11-13-2006 10:51 AM |
| Setting a variable to result of FIND command | JP Favara | Windows & DOS: Issues & Discussions | 2 | 03-09-2005 10:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
populate variable from remote result
Hi there
i am trying to pass the result of a remote command into a variable into my script ie Code:
#!/bin/sh var = `ssh remote_box 'uname'` echo $var Code:
./script.sh[3]: var: not found However when i add a -x to put it into diag mode i get the following Code:
+ ssh remote_server uname + var = SunOS ./script[3]: var: not found + echo does anybody know what im doing wrong here? Cheers Gary |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|