options for run in terminal

Tony Alfrey tonyalfrey
Mon May 2 14:07:03 PDT 2005


Roger Oberholtzer wrote:
> 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.

This is pretty good.
Thanks!


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


More information about the Linux-users mailing list