[TriLUG] bash, variables and expect

Tanner Lovelace clubjuggler at gmail.com
Thu Jul 12 10:59:50 EDT 2007


On 7/12/07, Matthew Opoka <matthew at opoka.name> wrote:
> All,
>
> If you call an expect script in bash, how do you get the expect script to see the bash variables or is this possible?   I tried exporting the variables but that didn't work.

You could always try using Perl Expect
(http://sourceforge.net/projects/expectperl/)
and then get to the bash variables by way of perl. (And  have all of perl's
power too.)  I've used it before and it works very well.

Cheers,
Tanner
-- 
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.



More information about the TriLUG mailing list