EXPECT/TCL: the "source" command and passing arguments
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 |
source takes one file and inserts it to the current script, like an include. it doesn't *run* the script, like you seem to be thinking it will there.
|
Or is there a way to invoke an Expect script from another, with some arguments?
Thanks, Tom |
|
Quote:
BTW another guru has informed me of this one: http://wiki.tcl.tk/10025 |
All times are GMT -5. The time now is 08:52 AM. |