options for run in terminal

Roger Oberholtzer roger
Mon May 2 09:57:52 PDT 2005


On Mon, 2005-05-02 at 13:56, Tony Alfrey wrote:
> 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?

Yep. Nothing fancy. A message to the user also lets them know what's up.

+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
? Kapellgr?nd 7              ?                               ?
? P. O. Box 4205             ?    Phone: Int + 46 8   314223 ?
? 102 65 Stockholm           ?   Mobile: Int + 46 733 621657 ?
? Sweden                     ?      Fax: Int + 46 8   314223 ?
+????????????????????????????+???????????????????????????????+



More information about the Linux-users mailing list