Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2004 09:17:04 +0000 (GMT)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Don Wilde <Don@Silver-Lynx.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shell programming challenge
Message-ID:  <Pine.GSO.4.61.0411260916060.22302@mail.ilrt.bris.ac.uk>
In-Reply-To: <41A62A68.8050201@Silver-Lynx.com>
References:  <41A615CE.6010405@Silver-Lynx.com> <19861fba0411251005265ecb91@mail.gmail.com> <41A62A68.8050201@Silver-Lynx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 25 Nov 2004, Don Wilde wrote:

> J65nko BSD wrote:
> > On Thu, 25 Nov 2004 10:26:38 -0700, Don Wilde <don@silver-lynx.com> wrote:
> > 
> > > Hey, folks -
> > > 
> > > I need to find a way to kick off an xterm running BASH and then execute
> > > a program within that xterm, but NOT close the new xterm after the
> > > program finishes. 
> 
> [snip]
> 
> > 
> > xterm -hold -e sh -c  ./ticktock &
> > 
> > "-hold" is explained in the xterm man page ;)
> > 
> Yes and no. I don't get as command prompt back in the new xterm, either with
> sh or bash. ALso, the --rcfile arcument does not appear to work in conjunction
> with -c.
> 
> This is what the man for hold specifies, but I need the prompt.

If you have the option to modify it, ensure that your script exits via 
"exec sh". Alternatively a wrapper that does this is straightforward to 
build.

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287864 or +44 (0)117 9287088 http://ioctl.org/jan/
Political talk? / What is said can be unsaid / with good old BS
  -- ASCII haiku



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.61.0411260916060.22302>