Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2004 12:00:01 -0600
From:      Adam Fabian <afabian@austin.rr.com>
To:        Don Wilde <Don@Silver-Lynx.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shell programming challenge
Message-ID:  <20041125180001.GB1299@turingmachine.mentalsiege.net>
In-Reply-To: <41A615CE.6010405@Silver-Lynx.com>
References:  <41A615CE.6010405@Silver-Lynx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 25, 2004 at 10:26:38AM -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. Another desirable thing would be to also be able to 
> 'source in' a file of shell environment that would affect the new window 
>  and shell.

bash --rc-file \
file_that_contains_the_environment_i_want_and_the_command_i_want_to_run

If you mean that you want the xterm to continue running the same
instance of bash.  I don't think xterms run without the benefit of a
program to emulate a terminal for.
-- 
Adam Fabian (afabian@austin.rr.com)



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