Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If truth is beauty, how come no one has their hair done in the library?" -- Lily Tomlin


devel / comp.lang.tcl / Re: Suppress output from tcom object

SubjectAuthor
* Suppress output from tcom objectRobert Lipman
+- Re: Suppress output from tcom objectAndreas Leitgeb
`* Re: Suppress output from tcom objectHarald Oehlmann
 `- Re: Suppress output from tcom objectRobert Lipman

1
Suppress output from tcom object

<1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22649&group=comp.lang.tcl#22649

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:4e89:0:b0:412:2dd3:e0ff with SMTP id 9-20020ac84e89000000b004122dd3e0ffmr23894qtp.1.1693363550969;
Tue, 29 Aug 2023 19:45:50 -0700 (PDT)
X-Received: by 2002:a17:903:22cb:b0:1bf:702b:f208 with SMTP id
y11-20020a17090322cb00b001bf702bf208mr309520plg.11.1693363550396; Tue, 29 Aug
2023 19:45:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!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, 29 Aug 2023 19:45:49 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=129.6.12.29; posting-account=13SNJAoAAACwhIaY_p0jwHwSsvY_y3xz
NNTP-Posting-Host: 129.6.12.29
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>
Subject: Suppress output from tcom object
From: robert.lipman@gmail.com (Robert Lipman)
Injection-Date: Wed, 30 Aug 2023 02:45:50 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1311
 by: Robert Lipman - Wed, 30 Aug 2023 02:45 UTC

I use tcom to create an object in Tcl 8.5.

set objIFCsvr [::tcom::ref createobject IFCsvr.R300]

IFCsvr.R300 creates some text output when it starts that I cannot suppress. I've tried many things that do not work. Any suggestions to suppress it or redirect it to a variable that I can work with?

Thanks,

Bob Lipman

Re: Suppress output from tcom object

<slrnuetqut.6epk.avl@logic.at>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22652&group=comp.lang.tcl#22652

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: avl@logic.at (Andreas Leitgeb)
Newsgroups: comp.lang.tcl
Subject: Re: Suppress output from tcom object
Date: Wed, 30 Aug 2023 07:12:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <slrnuetqut.6epk.avl@logic.at>
References: <1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>
Reply-To: avl@logic.at
Injection-Date: Wed, 30 Aug 2023 07:12:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="57c72d364c6bd9b2891b974b146d0ebe";
logging-data="2796652"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193NEk8h9uJkmlUaz7KF59z"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:VddzzLFhPhmEiahdeWikeOjawh4=
 by: Andreas Leitgeb - Wed, 30 Aug 2023 07:12 UTC

Robert Lipman <robert.lipman@gmail.com> wrote:
> I use tcom to create an object in Tcl 8.5.
> set objIFCsvr [::tcom::ref createobject IFCsvr.R300]
> IFCsvr.R300 creates some text output when it starts that
> I cannot suppress. I've tried many things that do not work.
> Any suggestions to suppress it or redirect it to a variable
> that I can work with?

I'd guess that this call causes something to be written to stdout
or stderr.

- first, try to examine the documentation of IFCsvr.R300 to see, if
either that output can be just inhibited, or (on the opposite)
that you're even legally required to present this to he user.

- would it be an option to redirect stdout and stderr completely?
(only viable, if your program itself doesn't itself communicate
over stdout/-err, and you'd not be violating any licence terms)

- get extension "Tclx" and look for a recent thread here in this
group about Tclx and redirecting some component's stdout to a
file using Tclx's "dup" command.

Re: Suppress output from tcom object

<ucn3jh$2m3gi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22653&group=comp.lang.tcl#22653

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Suppress output from tcom object
Date: Wed, 30 Aug 2023 11:53:54 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ucn3jh$2m3gi$1@dont-email.me>
References: <1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Aug 2023 09:53:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8931ce001de3490da13ff24edfe5b415";
logging-data="2821650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zI6SqD8cf4laPPE+qsDnY"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:J8Yynp6jj3w2BbiDljKs1gVQvt4=
In-Reply-To: <1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>
Content-Language: en-GB
 by: Harald Oehlmann - Wed, 30 Aug 2023 09:53 UTC

Am 30.08.2023 um 04:45 schrieb Robert Lipman:
> I use tcom to create an object in Tcl 8.5.
>
> set objIFCsvr [::tcom::ref createobject IFCsvr.R300]
>
> IFCsvr.R300 creates some text output when it starts that I cannot suppress. I've tried many things that do not work. Any suggestions to suppress it or redirect it to a variable that I can work with?
>
> Thanks,
>
> Bob Lipman

Bob,
where is the text output ? Does it go to stdout ? Or is it a text box
shown by the IFC-Application?
Or do you mean, that something like "tcom::objABC" is printed to the
console?

As a side note: TCOM is great stuff but unfortunately unmaintained and
does not run on 64 bit. TWAPI also has a COM solution. Not so powerful
(specially on to implement a com server) but sufficient for most cases.

Take care,
Harald

Re: Suppress output from tcom object

<a95ae0c2-2464-4db9-8cf3-f830150353b2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22659&group=comp.lang.tcl#22659

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:2412:b0:76f:e36:28d0 with SMTP id d18-20020a05620a241200b0076f0e3628d0mr39076qkn.0.1693443443090;
Wed, 30 Aug 2023 17:57:23 -0700 (PDT)
X-Received: by 2002:a05:6808:1815:b0:3a8:6733:d403 with SMTP id
bh21-20020a056808181500b003a86733d403mr564281oib.7.1693443442794; Wed, 30 Aug
2023 17:57:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 30 Aug 2023 17:57:22 -0700 (PDT)
In-Reply-To: <ucn3jh$2m3gi$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=129.6.12.14; posting-account=13SNJAoAAACwhIaY_p0jwHwSsvY_y3xz
NNTP-Posting-Host: 129.6.12.14
References: <1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com> <ucn3jh$2m3gi$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a95ae0c2-2464-4db9-8cf3-f830150353b2n@googlegroups.com>
Subject: Re: Suppress output from tcom object
From: robert.lipman@gmail.com (Robert Lipman)
Injection-Date: Thu, 31 Aug 2023 00:57:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Robert Lipman - Thu, 31 Aug 2023 00:57 UTC

Hi,

Here's some more background about the problem. There are two versions of my software, a GUI and a command-line version. You can download them from https://www.nist.gov/services-resources/software/step-file-analyzer-and-viewer and the source code is on GitHub https://github.com/usnistgov/SFA

The IFCsvr generates some text output when the COM object is created and then when the COM object is used. In the GUI version I have no idea where that text output goes. However, in the command-line, both sets of text are created. I'm not interested in the first text when the COM object is created, but the other is useful.

So, in the command-line version I want to suppress the first bit of text, but keep the second set of text which is already the behavior. In the GUI version, I'd also like to get the second set of text, but it's not as important. The suppression is more important in the command-line version.

In general, what would be the common ways to redirect output from: set objIFCsvr [::tcom::ref createobject IFCsvr.R300]

I have considered twapi which would also let me to upgrade to Tcl 8.6 but it doesn't really buy me anything. Years ago I started making a twapi version but never finished. I never liked the twapi syntax for iterating on a COM object. Tcom has ::tcom::foreach which looks a lot better.

Thanks,

Bob


devel / comp.lang.tcl / Re: Suppress output from tcom object

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor