Re: Setting Variables in expect Scripts From Shell Output

2008-02-26 Thread Martin McCormick
Roger Olofsson writes: >If you're not too worried about speed my old trick to circumvent this >was to simply write the variable to a temporary file then read in that >file for the send_user thing later on...Providing the send_user is a >script, mind you. An excellent idea. I just wanted

Re: Setting Variables in expect Scripts From Shell Output

2008-02-25 Thread Roger Olofsson
Martin McCormick skrev: While running an expect script, is it possible to set an expect script variable to the string kept in a shell variable? I can generate the shell variable just fine but when I try to export it to the expect script for later use with something like: set L

Setting Variables in expect Scripts From Shell Output

2008-02-25 Thread Martin McCormick
While running an expect script, is it possible to set an expect script variable to the string kept in a shell variable? I can generate the shell variable just fine but when I try to export it to the expect script for later use with something like: set LOGFILENAME [exec echo \$TMPF