![activetcl run tcl script activetcl run tcl script](http://4.bp.blogspot.com/-1Xuo5M4ahok/UQUpVxZUy9I/AAAAAAAAAKw/kT00J4Xr7z0/w1200-h630-p-k-no-nu/ex.png)
If not, TCC assumes it was a Tcl script and TCC returns immediately.īecause of the way the Tk interpreter works, it is not possible for TCC to maintain a persistent interpreter after executing a Tk script.
#Activetcl run tcl script windows#
Windows NT: When running Tcl interactively, there may be some strange interactions between the real. So im trying to run ACO-based protocol AntNet on ns-2.34 and im currently getting this error when i try running an antnet tcl script via the command ns. This is normaly used to cleanup the state of the worker thread, release reserved resources, cleanup memory and such. open - Open a file-based or command pipeline channel. Sets a Tcl script run when the idle worker thread exits. This would prevent any unauthorized users from successfully running the scripts.
#Activetcl run tcl script code#
It may be desirable to also have the person running the script enter a code that would allow the TCL/Expect script to read the passwords. If so, it enters a Tk event loop and waits for the window to be closed. Default value for this option is unspecified, hence, the Tcl interpreter of the worker thread will contain just the initial set of Tcl commands.-exitcmd script. I was wondering if there was a way to create a file of passwords that was encrypted but TCL/Expect could still read it. After executing the script, TCC checks if a Tk window is running. It's not possible for TCC to determine in advance whether you're running a Tcl or a Tk script.
![activetcl run tcl script activetcl run tcl script](https://cdn-images.postach.io/87153345-a0e8-4729-a752-a71e0ad603cc/bd5329f1-3fd2-486c-80e3-cb364cb1696f/7c445e17-7125-4d1f-846a-fa17ab5505ba.png)
Close all the sockets / closeSockets(). If so, TCC passes the file to your Tcl interpreter for processing. This shell application is commonly called tclsh, but for example, in case of the ActiveTcl distribution (described later in this chapter), the name tclsh85. Run Tcl/Tk script / TkMainLoop() TclRelease((ClientData) interp). If a suitable library is found, TCC checks to see if you are running a. If it is enabled, TCC will automatically load a Tcl interpreter when it starts. You must enable Tcl support in the OPTION / Startup page. The Tkx module will look for installed versions of Tcl and Tk in /Library/Frameworks, which is where ActiveTcl puts them. The version supported by TCC is ActiveTcl 8.6 (free from. With tclsh, the program runs with a 'normal' Windows console (like cmd.exe), and standard output goes there. The Tcl/tk language is not built into TCC, and must be obtained separately. Hi Lauri, I assume when you're running it from cmd.exe, you're doing something like wish.exe path/to/myscript.tcl ActiveTcl on Windows ships with two interpreters, 'wish' and 'tclsh'.