Skip to content

Instantly share code, notes, and snippets.

@techsimplifiedtv
Created January 10, 2022 13:53
Show Gist options
  • Save techsimplifiedtv/3badf6311203a5dd8af6061a41f97d1a to your computer and use it in GitHub Desktop.
Save techsimplifiedtv/3badf6311203a5dd8af6061a41f97d1a to your computer and use it in GitHub Desktop.
#!/usr/bin/tclsh
# define a short-hand for "a set of tcl commands"
set cmd {puts "Hello World !"}
# execute it any no times later in the script
eval $cmd
set cmd {
set output [exec which tclsh]
puts $output
}
eval $cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment