Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111336

Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window

From Random832 <random832@fastmail.com>
Newsgroups comp.lang.python
Subject Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window
Date 2016-07-12 09:39 -0400
Message-ID <mailman.17.1468330785.21009.python-list@python.org> (permalink)
References <nm1nln$sku$1@dont-email.me> <57848dba$0$11093$c3e8da3@news.astraweb.com> <1468330782.481118.663973601.0478DF11@webmail.messagingengine.com>

Show all headers | View raw


On Tue, Jul 12, 2016, at 02:27, Steven D'Aprano wrote:
> On Tuesday 12 July 2016 13:20, Veek. M wrote:
> > I then need to get it translated which also works and then display in
> > XTerm using cat.
> 
> Why not just print it? Why do you have to use cat?

Well, displaying something in a new xterm (i.e. not one that already
exists and is your controlling terminal) without a process to run "in"
the terminal is rather esoteric and isn't portable to terminals other
than xterm.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window "Veek. M" <vek.m1234@gmail.com> - 2016-07-12 08:50 +0530
  Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-12 16:27 +1000
    Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-12 16:28 +1000
    Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window Random832 <random832@fastmail.com> - 2016-07-12 09:39 -0400
    Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window "Veek. M" <vek.m1234@gmail.com> - 2016-07-12 19:43 +0530
  Re: subprocess: xterm -c cat, need to send data to cat and have it displayed in the xterm window Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-07-12 18:42 -0700

csiph-web