options for run in terminal

Tony Alfrey tonyalfrey
Mon May 2 07:46:28 PDT 2005


Roger Oberholtzer wrote:

<snip>
> 
> 
> I made a small shell wrapper that I use for programs that I run in a
> terminal window that I want to stay after the program is done.
> 
> It is:
> 
> 	#!/bin/bash
> 
> 	$*
> 
> 	echo "Press ENTER to continue"
> 	read junk
> 
> If you call it 'dtwrap' and put it in your path, then you use it like
> this to xterm (konsole or whatever would be similiar):
> 
> 	xterm -e dtwrap ls -l
> 
> This also means that the wrapper can be changed in one place.
> 
> 
> 

Sorry, I'm a little lost.  The command xterm -e runs the program that 
follows (here it is dtwrap with arguments ls -l).  I assume that ls -l 
is what you are using here as an example of a possible command I might 
wish to call from xterm, and after it runs, the xterm window stays open 
until I press enter?


-- 
Tony Alfrey
tonyalfrey at earthlink.net
"I'd Rather Be Sailing"


More information about the Linux-users mailing list