Tool Command Language (TCL)

Files

wish - interpreter for gui applications
tclsh - interpreter for non gui applications

Hello World - gui version

Create script helloworld.tcl:

# This is a comment
button .b -text "Hello World" -command exit
pack .b

Export DISPLAY
export DISPLAY=w.x.y.z:0.0

Run the script
<path>/wish helloworld.tcl

Hello World - non gui version


Create the script helloworld.tcl

puts "hello world"

Run the script
<path>/tclsh helloworld.tcl