![]() |
|
|
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 |
| Capturing a value in to variable. | ravi0435 | UNIX for Dummies Questions & Answers | 1 | 03-05-2009 12:27 PM |
| saving command output to a variable | philjo | UNIX for Dummies Questions & Answers | 4 | 01-20-2009 11:03 AM |
| capturing the o/p to a variable | villain41 | Shell Programming and Scripting | 2 | 01-15-2009 03:20 AM |
| saving awk value in a bash array variable | npatwardhan | Shell Programming and Scripting | 1 | 12-17-2008 09:46 PM |
| Saving output from awk into a perl variable | userix | Shell Programming and Scripting | 8 | 10-09-2008 05:01 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I need to capture the homedir using the ssh command and then saving it to a variable.
The results from the following command is what I need to capture to a variable: NOTE: the value I'm getting back is also incorrect. as it seems to be getting the home dir from the local server and not the one I'm sshed too! ssh -o BatchMode=yes $userid@server ~$userid I've tried redirect but get "ambiguous redirect" error I've tried just saving it to a variable but it doesn't recognize the command I've tried piping it to "read HOMEDIR", but that doesn't work. Any ideas?? ![]() Last edited by reneuend; 08-19-2009 at 11:25 PM.. Reason: forgot something |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|