supress STDOUT



Hi,

I'm using Expect to send and receive binary data. I communicate with
internet sockets via XINETD super server, so I can simply communicate via
STDIN/STDOUT to XINETD, instead of using socket operations myself.

The problem is, when I call my script from the command line, aside from my
"puts" commands I wish dumped to STDOUT, I also see all the binary data that
shows up as garbaled characters on my screen, which occasionally also upsets
my terminal emulator.

This is because "puts" and "send" both write to STDOUT. Is there a way to
supress "receive" from echo'ing the data to my terminal, while puts still
works?

Lisa


.



Relevant Pages

  • Re: supress STDOUT
    ... I communicate with internet sockets via XINETD super server, so I can simply communicate via ... The problem is, when I call my script from the command line, aside from my "puts" commands I wish dumped to STDOUT, I also see all the binary data that shows up as garbaled characters on my screen, which occasionally also upsets my terminal emulator. ...
    (comp.lang.tcl)
  • win32 service 2 service communication
    ... I have 2 win32 services written using C# that need to communicate with each ... They are passing back and forth large blobs of binary data. ...
    (microsoft.public.dotnet.framework.performance)