Scientific Volume Imaging b.v.
Scientific Volume Imaging b.v.
Laapersveld 63
1213 VB Hilversum, The Netherlands
http://www.svi.nl
http://support.svi.nl/wiki

Using scripts from a file

Single line scripts can be typed directly at the prompt but with multi line script it is more convenient to create and modify them with a text editor. This enables you to correct typo's, test your application and make corrections.

For instance, you can type the examples to a plain text file and save it as my_script.tcl. It can then be executed with the Tcl command source:

source my_script.tcl

For Tcl to find the file, the file must be in your working directory. If you did not use the cd command to change the working directory this is the directory from which you started huscript. Alternative, you can specify the full path to the file when sourcing it.