Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

A mathematician is a device for turning coffee into theorems. -- P. Erdos


devel / comp.lang.tcl / running TCL/tk from a batch file in Windows

SubjectAuthor
* running TCL/tk from a batch file in WindowsMark Tarver
+* Re: running TCL/tk from a batch file in WindowsRich
|`* Re: running TCL/tk from a batch file in WindowsMark Tarver
| `* Re: running TCL/tk from a batch file in WindowsRalf Fassel
|  `* Re: running TCL/tk from a batch file in WindowsMark Tarver
|   `* Re: running TCL/tk from a batch file in WindowsMark Tarver
|    `* Re: running TCL/tk from a batch file in WindowsRalf Fassel
|     `- Re: running TCL/tk from a batch file in WindowsMark Tarver
`* Re: running TCL/tk from a batch file in Windowset99
 `* Re: running TCL/tk from a batch file in WindowsMark Tarver
  `- Re: running TCL/tk from a batch file in WindowsMark Tarver

1
running TCL/tk from a batch file in Windows

<d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13253&group=comp.lang.tcl#13253

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1311:b0:42a:b393:e8eb with SMTP id v17-20020a05622a131100b0042ab393e8ebmr107704qtk.13.1706614705239;
Tue, 30 Jan 2024 03:38:25 -0800 (PST)
X-Received: by 2002:a05:622a:1895:b0:42a:9c3b:c087 with SMTP id
v21-20020a05622a189500b0042a9c3bc087mr230324qtc.7.1706614705053; Tue, 30 Jan
2024 03:38:25 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 03:38:24 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
Subject: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Tue, 30 Jan 2024 11:38:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1298
 by: Mark Tarver - Tue, 30 Jan 2024 11:38 UTC

I want to run TCL/tk from a batch file in Windows. My event loop program loads if I click on the file eventloop.tcl and I get a widget window. What I want to do is get exactly the same thing from a batch file.

Mark

Re: running TCL/tk from a batch file in Windows

<upb7s1$129vn$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13254&group=comp.lang.tcl#13254

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: running TCL/tk from a batch file in Windows
Date: Tue, 30 Jan 2024 16:24:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <upb7s1$129vn$1@dont-email.me>
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
Injection-Date: Tue, 30 Jan 2024 16:24:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="82a4aaea436275606af8d523a90d7c18";
logging-data="1124343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kkO16eN49U8hX6f/3hXlV"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:rPENUL9y5j6fQy0YoYb+L6O7KLU=
 by: Rich - Tue, 30 Jan 2024 16:24 UTC

Mark Tarver <dr.mtarver@gmail.com> wrote:
> I want to run TCL/tk from a batch file in Windows. My event loop
> program loads if I click on the file eventloop.tcl and I get a widget
> window. What I want to do is get exactly the same thing from a batch
> file.

Then have the batch file run:

wish.exe eventloop.tcl

somewhere within it. Note that if wish.exe is not on your PATH you man
have to give the full path to wish.exe (i.e. something like:
c:\Users\Someone\Tcl\bin\wish.exe)

Now, if you mean something else, you'll need to be more specific as to
what you really mean.

Re: running TCL/tk from a batch file in Windows

<d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13255&group=comp.lang.tcl#13255

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:5a88:0:b0:42a:49d4:2965 with SMTP id c8-20020ac85a88000000b0042a49d42965mr60365qtc.4.1706634457889;
Tue, 30 Jan 2024 09:07:37 -0800 (PST)
X-Received: by 2002:a05:622a:1b18:b0:42a:b3f2:8523 with SMTP id
bb24-20020a05622a1b1800b0042ab3f28523mr58638qtb.0.1706634457590; Tue, 30 Jan
2024 09:07:37 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 09:07:37 -0800 (PST)
In-Reply-To: <upb7s1$129vn$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com> <upb7s1$129vn$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Tue, 30 Jan 2024 17:07:37 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2014
 by: Mark Tarver - Tue, 30 Jan 2024 17:07 UTC

On Tuesday 30 January 2024 at 16:24:37 UTC, Rich wrote:
> Mark Tarver <dr.mt...@gmail.com> wrote:
> > I want to run TCL/tk from a batch file in Windows. My event loop
> > program loads if I click on the file eventloop.tcl and I get a widget
> > window. What I want to do is get exactly the same thing from a batch
> > file.
> Then have the batch file run:
>
> wish.exe eventloop.tcl
>
> somewhere within it. Note that if wish.exe is not on your PATH you man
> have to give the full path to wish.exe (i.e. something like:
> c:\Users\Someone\Tcl\bin\wish.exe)
>
> Now, if you mean something else, you'll need to be more specific as to
> what you really mean.
I've done this as directed; but what I get is a brief flicker of a window (WISH?)
and then zip. If I click on eventloop.tcl directly I get WISH presumably with
eventloop.tcl loaded.

Mark

Re: running TCL/tk from a batch file in Windows

<ygafryeoidc.fsf@panther.akutech-local.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13256&group=comp.lang.tcl#13256

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: running TCL/tk from a batch file in Windows
Date: Tue, 30 Jan 2024 18:12:31 +0100
Lines: 35
Message-ID: <ygafryeoidc.fsf@panther.akutech-local.de>
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upb7s1$129vn$1@dont-email.me>
<d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net TahdFsPj3oslAkJ5ZIIijQV7NWNIkydv+1QlwAQAhFq5S2QeA=
Cancel-Lock: sha1:olhhBklYd2Kyg6Pz9tJgPzF+ESw= sha1:8CcklTXrt9w58ujSF6ftcbccCew= sha256:zvBynJA31iwBDJSNHcofnJmBDuEfObRFYKZKcDEPVnM=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Tue, 30 Jan 2024 17:12 UTC

* Mark Tarver <dr.mtarver@gmail.com>
| On Tuesday 30 January 2024 at 16:24:37 UTC, Rich wrote:
| > Mark Tarver <dr.mt...@gmail.com> wrote:
| > > I want to run TCL/tk from a batch file in Windows. My event loop
| > > program loads if I click on the file eventloop.tcl and I get a widget
| > > window. What I want to do is get exactly the same thing from a batch
| > > file.
| > Then have the batch file run:
| >
| > wish.exe eventloop.tcl
| >
| > somewhere within it. Note that if wish.exe is not on your PATH you man
| > have to give the full path to wish.exe (i.e. something like:
| > c:\Users\Someone\Tcl\bin\wish.exe)
| >
| > Now, if you mean something else, you'll need to be more specific as to
| > what you really mean.
| I've done this as directed; but what I get is a brief flicker of a window (WISH?)
| and then zip. If I click on eventloop.tcl directly I get WISH presumably with
| eventloop.tcl loaded.

Add a 'pause' statement after wish.exe to see error messages in the .bat
console window while debugging the batch script.

wish.exe eventloop.tcl
pause

It might be that you need to specify both wish.exe and eventloop.tcl with
full path names.

c:\ProgramFiles\tcl\wish.exe c:\users\blah\tcl\eventloop.tcl
pause

HTH
R'

Re: running TCL/tk from a batch file in Windows

<28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13257&group=comp.lang.tcl#13257

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:5c41:b0:68c:6796:7fd with SMTP id lz1-20020a0562145c4100b0068c679607fdmr2060qvb.12.1706635290872;
Tue, 30 Jan 2024 09:21:30 -0800 (PST)
X-Received: by 2002:a05:620a:458f:b0:784:8e1b:43b8 with SMTP id
bp15-20020a05620a458f00b007848e1b43b8mr51744qkb.3.1706635290641; Tue, 30 Jan
2024 09:21:30 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.swapon.de!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 09:21:30 -0800 (PST)
In-Reply-To: <ygafryeoidc.fsf@panther.akutech-local.de>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upb7s1$129vn$1@dont-email.me> <d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
<ygafryeoidc.fsf@panther.akutech-local.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Tue, 30 Jan 2024 17:21:30 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1707
 by: Mark Tarver - Tue, 30 Jan 2024 17:21 UTC

Hi,

I used pause and the vanishing window is a command window with the legend

C:\Users\shend\OneDrive\Desktop\Shen\S38>exec C:\ActiveTcl\bin\wish86t.exe C:\Users\shend\OneDrive\Desktop\Shen\S38\Tk\eventloop.tcl
'exec' is not recognized as an internal or external command,
operable program or batch file.

The batch file contains

exec C:\ActiveTcl\bin\wish86t.exe C:\Users\shend\OneDrive\Desktop\Shen\S38\Tk\eventloop.tcl
pause >nul

Mark

Re: running TCL/tk from a batch file in Windows

<8822c2bf-1bbb-4ce2-9fe3-c1f83b433ec5n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13258&group=comp.lang.tcl#13258

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:198e:b0:784:b12:ba23 with SMTP id bm14-20020a05620a198e00b007840b12ba23mr38837qkb.5.1706635886528;
Tue, 30 Jan 2024 09:31:26 -0800 (PST)
X-Received: by 2002:ac8:59c3:0:b0:42b:e1b4:2474 with SMTP id
f3-20020ac859c3000000b0042be1b42474mr25599qtf.5.1706635886224; Tue, 30 Jan
2024 09:31:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 09:31:25 -0800 (PST)
In-Reply-To: <28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upb7s1$129vn$1@dont-email.me> <d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
<ygafryeoidc.fsf@panther.akutech-local.de> <28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8822c2bf-1bbb-4ce2-9fe3-c1f83b433ec5n@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Tue, 30 Jan 2024 17:31:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1540
 by: Mark Tarver - Tue, 30 Jan 2024 17:31 UTC

I tried this

C:\ActiveTcl\bin\wish86t.exe -encoding "C:\Users\shend\OneDrive\Desktop\Shen\S38\Tk\eventloop.tcl"

which worked BUT I got a command window and a TCL console for free which I did not
want. :(

Mark

Re: running TCL/tk from a batch file in Windows

<yga8r46ofj1.fsf@panther.akutech-local.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13259&group=comp.lang.tcl#13259

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: running TCL/tk from a batch file in Windows
Date: Tue, 30 Jan 2024 19:13:54 +0100
Lines: 18
Message-ID: <yga8r46ofj1.fsf@panther.akutech-local.de>
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upb7s1$129vn$1@dont-email.me>
<d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
<ygafryeoidc.fsf@panther.akutech-local.de>
<28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>
<8822c2bf-1bbb-4ce2-9fe3-c1f83b433ec5n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net KVEn/4Jq3ahx7inmLlKJ3geyNo5HnhY17b5TRqjcJB5KemzCk=
Cancel-Lock: sha1:0kLit+h966dzjxBNMq1PdbINs4g= sha1:duFjrvfvQpkMJ5Wc/5Q41djXPA0= sha256:sgyZGvucA2P9n1ClWg138B+un4TFshBDdynSm2VO0BI=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Tue, 30 Jan 2024 18:13 UTC

* Mark Tarver <dr.mtarver@gmail.com>
| I tried this
>
| C:\ActiveTcl\bin\wish86t.exe -encoding "C:\Users\shend\OneDrive\Desktop\Shen\S38\Tk\eventloop.tcl"

Note that an argument like 'utf-8' is required after -encoding, not
directly the file name (this might be why you get a TCL console, not
sure).

| which worked BUT I got a command window and a TCL console for free
| which I did not want. :(

A .bat *always* gets a command window, which you can set to "minimized
on startup" in the properties of the .bat, but AFAIK it will always be there.

Maybe you want a desktop link to the .tcl file instead?

R'

Re: running TCL/tk from a batch file in Windows

<c4baa0bd-a49a-4741-8285-4b937c2d09c6n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13262&group=comp.lang.tcl#13262

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1182:b0:42a:b6f2:69ba with SMTP id m2-20020a05622a118200b0042ab6f269bamr15081qtk.5.1706659510411;
Tue, 30 Jan 2024 16:05:10 -0800 (PST)
X-Received: by 2002:a05:620a:4005:b0:783:aa16:a09d with SMTP id
h5-20020a05620a400500b00783aa16a09dmr3478qko.15.1706659510083; Tue, 30 Jan
2024 16:05:10 -0800 (PST)
Path: i2pn2.org!i2pn.org!nntp.comgw.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 16:05:09 -0800 (PST)
In-Reply-To: <yga8r46ofj1.fsf@panther.akutech-local.de>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upb7s1$129vn$1@dont-email.me> <d42e2c0b-22d1-4f9e-8bd2-dc16aa2acfc1n@googlegroups.com>
<ygafryeoidc.fsf@panther.akutech-local.de> <28842b58-4419-4126-9d1a-9e73c5664befn@googlegroups.com>
<8822c2bf-1bbb-4ce2-9fe3-c1f83b433ec5n@googlegroups.com> <yga8r46ofj1.fsf@panther.akutech-local.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c4baa0bd-a49a-4741-8285-4b937c2d09c6n@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Wed, 31 Jan 2024 00:05:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2508
 by: Mark Tarver - Wed, 31 Jan 2024 00:05 UTC

On Tuesday 30 January 2024 at 18:13:58 UTC, Ralf Fassel wrote:
> * Mark Tarver <dr.mt...@gmail.com>
> | I tried this
> >
> | C:\ActiveTcl\bin\wish86t.exe -encoding "C:\Users\shend\OneDrive\Desktop\Shen\S38\Tk\eventloop.tcl"
> Note that an argument like 'utf-8' is required after -encoding, not
> directly the file name (this might be why you get a TCL console, not
> sure).
> | which worked BUT I got a command window and a TCL console for free
> | which I did not want. :(
> A .bat *always* gets a command window, which you can set to "minimized
> on startup" in the properties of the .bat, but AFAIK it will always be there.
>
> Maybe you want a desktop link to the .tcl file instead?
>
> R'
utf worked - getting rid of console :)). The command window is frozen. :((
I wanted to use the bat file to start TCL/tk with the event loop (process A)
and then start another process (a REPL) in the command window (process B).
Putting process A first blocks the REPL and process B first blocks TCL. I
need something which allows both processes to go through.

Mark

Re: running TCL/tk from a batch file in Windows

<upc84f$17j8d$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13263&group=comp.lang.tcl#13263

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: running TCL/tk from a batch file in Windows
Date: Tue, 30 Jan 2024 17:35:11 -0800
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <upc84f$17j8d$1@dont-email.me>
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 01:35:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8eaa76106ba84944d88acc32dcb0234d";
logging-data="1297677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TH4TKTBekWudb7YGaQMwf"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:oAYenlVq/NeS5qgYbDUphgZUdzI=
In-Reply-To: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
Content-Language: en-US
 by: et99 - Wed, 31 Jan 2024 01:35 UTC

On 1/30/2024 3:38 AM, Mark Tarver wrote:
> I want to run TCL/tk from a batch file in Windows. My event loop program loads if I click on the file eventloop.tcl and I get a widget window. What I want to do is get exactly the same thing from a batch file.
>

Have you tried:

start /min <path>\wish <path>\eventloop.tcl

Re: running TCL/tk from a batch file in Windows

<4670bfd4-891d-4723-81c6-2298fdfd7cb0n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13264&group=comp.lang.tcl#13264

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:2990:b0:785:3e76:67e5 with SMTP id r16-20020a05620a299000b007853e7667e5mr5785qkp.0.1706680769575;
Tue, 30 Jan 2024 21:59:29 -0800 (PST)
X-Received: by 2002:a05:622a:189f:b0:42b:e0d6:c253 with SMTP id
v31-20020a05622a189f00b0042be0d6c253mr57839qtc.12.1706680769337; Tue, 30 Jan
2024 21:59:29 -0800 (PST)
Path: i2pn2.org!i2pn.org!nntp.comgw.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 21:59:28 -0800 (PST)
In-Reply-To: <upc84f$17j8d$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com> <upc84f$17j8d$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4670bfd4-891d-4723-81c6-2298fdfd7cb0n@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Wed, 31 Jan 2024 05:59:29 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2066
 by: Mark Tarver - Wed, 31 Jan 2024 05:59 UTC

On Wednesday 31 January 2024 at 01:35:16 UTC, et99 wrote:
> On 1/30/2024 3:38 AM, Mark Tarver wrote:
> > I want to run TCL/tk from a batch file in Windows. My event loop program loads if I click on the file eventloop.tcl and I get a widget window. What I want to do is get exactly the same thing from a batch file.
> >
> Have you tried:
>
> start /min <path>\wish <path>\eventloop.tcl

I'll give that a go. Another possibility is to start process B from TCL
by putting a preamble into eventloop.tcl. I've found 'exec':)

exec "C:/Users/shend/OneDrive/Desktop/Shen/S38/sbcl-shen.exe"

but no command window appears. Oddly the REPL of the external
program (process B) is called repeatedly until an overflow occurs.

What I'm trying to do is obtain the result I obtain now by clicking on eventloop.tcl (process A)
and then clicking on shen-sbcl.exe (process B), but by clicking on only one icon.

Mark

Re: running TCL/tk from a batch file in Windows

<2941dab4-9d31-494a-9463-770c89770fd0n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13265&group=comp.lang.tcl#13265

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:3728:b0:785:39c2:f7f5 with SMTP id de40-20020a05620a372800b0078539c2f7f5mr22823qkb.11.1706682426179;
Tue, 30 Jan 2024 22:27:06 -0800 (PST)
X-Received: by 2002:a05:620a:1914:b0:784:37ff:4863 with SMTP id
bj20-20020a05620a191400b0078437ff4863mr7737qkb.9.1706682425918; Tue, 30 Jan
2024 22:27:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 30 Jan 2024 22:27:05 -0800 (PST)
In-Reply-To: <4670bfd4-891d-4723-81c6-2298fdfd7cb0n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.97.229; posting-account=kJbRXgoAAADVvCa8xCOuqxtZ-KSaXUAS
NNTP-Posting-Host: 86.28.97.229
References: <d8456c2a-4b6b-446d-8529-eba1b9d2f9a1n@googlegroups.com>
<upc84f$17j8d$1@dont-email.me> <4670bfd4-891d-4723-81c6-2298fdfd7cb0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2941dab4-9d31-494a-9463-770c89770fd0n@googlegroups.com>
Subject: Re: running TCL/tk from a batch file in Windows
From: dr.mtarver@gmail.com (Mark Tarver)
Injection-Date: Wed, 31 Jan 2024 06:27:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2301
 by: Mark Tarver - Wed, 31 Jan 2024 06:27 UTC

On Wednesday 31 January 2024 at 05:59:32 UTC, Mark Tarver wrote:
> On Wednesday 31 January 2024 at 01:35:16 UTC, et99 wrote:
> > On 1/30/2024 3:38 AM, Mark Tarver wrote:
> > > I want to run TCL/tk from a batch file in Windows. My event loop program loads if I click on the file eventloop.tcl and I get a widget window. What I want to do is get exactly the same thing from a batch file.
> > >
> > Have you tried:
> >
> > start /min <path>\wish <path>\eventloop.tcl
> I'll give that a go. Another possibility is to start process B from TCL
> by putting a preamble into eventloop.tcl. I've found 'exec':)
>
> exec "C:/Users/shend/OneDrive/Desktop/Shen/S38/sbcl-shen.exe"
>
> but no command window appears. Oddly the REPL of the external
> program (process B) is called repeatedly until an overflow occurs.
>
> What I'm trying to do is obtain the result I obtain now by clicking on eventloop.tcl (process A)
> and then clicking on shen-sbcl.exe (process B), but by clicking on only one icon.
>
> Mark
Bingo; START worked! Thanks guys.

Mark

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor