Sujet : Re: tclexecomp won't print anything
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tclDate : 17. Dec 2024, 18:27:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241217142733.36388caa@lud1.home>
References : 1 2
On Tue, 17 Dec 2024 08:51:42 +0100, Michael Niehren wrote:
tclexecomp always starts tk (aka wish) if possible. If you start it on an
headless linux server, it only starts an tclsh.
So your "puts" will be on the TK-Console, which is on default not visible.
Put an "console show" in the first line of your script and you will see
your "puts" as an output in the console window.
>
best regards
Michael
**************************
I still don't understand.
If I run it as a script,
$ wish ./p1.tcl
there is output.
But if I run the executable on a terminal,
$ ./p1
then there is no output.
Like I said, I have packed a pretty much complete application with
tclexecomp and it can output if I want it to.
But an extremely simple script can't output.
I still don't understand why.
-- Luc>