Nп/п : 16 из 100
 От   : Andreas Leitgeb                     2:5075/128        30 авг 23 07:12:29
 К    : Robert Lipman                                         30 авг 23 10:14:02
 Тема : Re: Suppress output from tcom object
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <slrnuetqut.6epk.avl@logic.at> 955f9559
@REPLY:
<1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com> 09981131
@REPLYADDR Andreas Leitgeb <avl@logic.at>
@REPLYTO 2:5075/128 Andreas Leitgeb
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: <slrnuetqut.6epk.avl@logic.at>
@RFC-References:
<1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com>
@RFC-Reply-To: avl@logic.at
@TZUTC: -0000
@PID: slrn/1.0.3 (Linux)
@TID: FIDOGATE-5.12-ge4e8b94
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.

--- slrn/1.0.3 (Linux)
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх