Date: Thu, 25 Nov 2004 11:17:58 -0700 From: Don Wilde <Don@Silver-Lynx.com> To: Adam Fabian <afabian@austin.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: shell programming challenge Message-ID: <41A621D6.90807@Silver-Lynx.com> In-Reply-To: <20041125180001.GB1299@turingmachine.mentalsiege.net> References: <41A615CE.6010405@Silver-Lynx.com> <20041125180001.GB1299@turingmachine.mentalsiege.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Adam Fabian wrote:
> 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.
That's what I don't want to do. I could cat the rcfile and the command
in a temp file, but that runs the risk of leaving junk around in /tmp.
I'm actually eval'ing this command from another larger program and
passing prog-to-be-run from it's argument string after a -e switch. This
is to be generalized; I don't know what prog-to-be-run is going to be.
--
Don Wilde ---------> Silver Lynx <----------
Raising the Trajectory of Human Development
---------------------------------------------
http://www.Silver-Lynx.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41A621D6.90807>
