Reputation: 3752
I need something similar:
$ tclsh --run-command puts hello
to print out: hello
.
Like -c
in bash
.
Upvotes: 0
Views: 40
Reputation: 3752
The simplest is to create a TCL script: runner.tcl
with the following content:
#runner.tcl
eval $argv
Use:
$ tclsh runner.tcl puts hello
Upvotes: 0