From owner-freebsd-questions@FreeBSD.ORG Fri Nov 26 09:17:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D69916A4CE for ; Fri, 26 Nov 2004 09:17:19 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B01E43D1F for ; Fri, 26 Nov 2004 09:17:18 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.34) id 1CXcE7-00023A-EO; Fri, 26 Nov 2004 09:17:16 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.34) id 1CXcDw-0000Cq-SO; Fri, 26 Nov 2004 09:17:05 +0000 Date: Fri, 26 Nov 2004 09:17:04 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Don Wilde In-Reply-To: <41A62A68.8050201@Silver-Lynx.com> Message-ID: References: <41A615CE.6010405@Silver-Lynx.com> <19861fba0411251005265ecb91@mail.gmail.com> <41A62A68.8050201@Silver-Lynx.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: 0.0 X-Spam-Level: / cc: J65nko BSD cc: freebsd-questions@freebsd.org Subject: Re: shell programming challenge X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2004 09:17:19 -0000 On Thu, 25 Nov 2004, Don Wilde wrote: > J65nko BSD wrote: > > On Thu, 25 Nov 2004 10:26:38 -0700, Don Wilde 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