Is there a way to pass params to a script in TCL that is run using eval source?

Posted by Corv1nus on Stack Overflow See other posts from Stack Overflow or by Corv1nus
Published on 2010-06-02T19:20:50Z Indexed on 2010/06/02 19:24 UTC
Read the original article Hit count: 166

Filed under:
|
|

I have a script that calls:

 eval source \{$scriptfile\}

where $scriptfile is another TCL script. Is there way to pass parameters to the script? I'd like to do something like:

set sampleData "ID=14678934"
eval source \{$scriptfile\} $sampleData 

I know that this isn't allowed but, is there a way to pass data to a script that is being executed using eval source?

© Stack Overflow or respective owner

Related posts about eval

Related posts about source