PDA

View Full Version : EXPECT/TCL: the "source" command and passing arguments



qmqmqm
April 2nd, 2009, 02:32 PM
Does anyone know how to pass parameters to Expect script if it is "source"ed from another Expect script?

For example, in an Expect script I have:

source "myOtherScript myArgument"

However I get error:

couldn't read file "myOtherScript myArgument": no such file or directory


Google did not give me anything useful...


Thanks a lot!

Tom

stevescripts
April 2nd, 2009, 04:37 PM
Tom,

Take a look at this page from the tcler's wiki:

http://wiki.tcl.tk/10025

If this doesn't solve your problem, feel free to ping me.

Steve

qmqmqm
April 2nd, 2009, 11:37 PM
Tom,

Take a look at this page from the tcler's wiki:

http://wiki.tcl.tk/10025

If this doesn't solve your problem, feel free to ping me.

Steve

Thanks again Steve! It works like a charm :)