[TriLUG] bash, variables and expect
scottchilcote at earthlink.net
Thu Jul 12 10:52:57 EDT 2007
Matthew Opoka wrote:
> 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.
Applications run from scripts with bash always inherit their
environment. I tried a quick test, and it worked fine for me.
I created the following two scripts:
$ cat expect-test
After chmod +x on both of them, I execute "runit"
I think this might be a different problem.
More information about the TriLUG