gless_what_the_hell

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: leaving xterm open
From: Steve Borho <steve@borho.org>
Date: Tue, 5 Sep 2000 12:57:29 -0500

On Tue, Sep 05, 2000 at 12:55:36PM -0500, Thomas R. Shannon wrote:
> I've looked through the man page and I just can't find how to do this.
> I'd like to start a command in a new terminal, let's say for instance:
> 
> xterm -e ps aux | grep emacs
> 
> and then leave the terminal open so that I can view the results of the
> command and any error messages.

try this:

ps aux | grep emacs | gless

===

Subject: Re: leaving xterm open
From: Ben Logan <linux@blogan.f2s.com>
Date: 06 Sep 2000 06:24:15 EDT

On Wed, 6 Sep 2000 13:46:43 +1100, Cameron Simpson said:

> On Tue, Sep 05, 2000 at 12:55:36PM -0500, Thomas R. Shannon wrote:
>  | I've looked through the man page and I just can't find how to do this.
>  | I'd like to start a command in a new terminal, let's say for instance:
>  | 
>  | xterm -e ps aux | grep emacs
>  | 
>  | and then leave the terminal open so that I can view the results of the
>  | command and any error messages.
>  
>  If you mean what I think, you want:
>  
>  	xterm -e sh -c 'ps aux | grep emacs; sleep 60'
>  
>  The sleep is to delay the xterm closing, which it will normally do when
>  the command is done (which is how they close when you say "exit" to a
>  shell). Obviously any variant on "sleep 60" will do fine as well.
  
I sometimes use read to accomplish the same thing, except then it hangs around
until you press <ENTER>:
      xterm -e sh -c 'ps aux | grep emacs; read a'

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu