![]() |
|
|
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 |
| Transfer variable to an expect function | sylvainkalache | Shell Programming and Scripting | 5 | 09-26-2009 01:01 PM |
| passing a variable inside another variable. | reconflux | Shell Programming and Scripting | 2 | 12-05-2008 05:07 PM |
| passing a variable inside a variable to a function | KingVikram | UNIX for Dummies Questions & Answers | 2 | 01-14-2008 08:28 PM |
| variable passing to sed | Manish Jha | Shell Programming and Scripting | 2 | 08-18-2006 12:54 PM |
| Variable passing | whugo | UNIX for Dummies Questions & Answers | 2 | 01-25-2006 06:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
passing variable to expect
Please tell me how to pass variable "a b c" to expect from the shell script
1/ example of input file # cat in-file var1 var2 a b c var4 2/ # this is my script - how to pass "a b c" as single variable ? cat in-file | while read x do my-expect x done 3/ # expect script - how to get "a b c" as single variable to expect set var3 [lindex $argv 2] .. send "$var3\r" Thanks Tam ---------- Post updated at 11:39 AM ---------- Previous update was at 11:10 AM ---------- I can put " " around a b c in my in-file - this is the description file var1 var2 "a b c" var4 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|