Resolved:
After a bit more work and lots of good suggestions, I came up with
xterm -e bash --rcfile .myrcfile -i -c "./ticktock && exec bash" &
It does everything I was expecting (assuming your regular .bashrc
doesn't trash the things you set up in the first environment!)
Thanks, all!
--
Don Wild
On Fri, 26 Nov 2004 13:57:31 +0200, Giorgos Keramidas
<[EMAIL PROTECTED]> wrote:
> On 2004-11-25 17:30, "Conrad J. Sabatier" <[EMAIL PROTECTED]> wrote:
> >
> > OK, I think I've found what you're looking for:
> >
> > xterm -e "/usr/local/bin/bash --rcfile bash_commands -i"
> >
> > Substitute your p
On Fri, Nov 26, 2004 at 09:15:11AM -0700, Don Wilde wrote:
>
> >
> >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.
> >
> It's looking more and more that I need to make a temporary file th
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.
It's looking more and more that I need to make a temporary file that
packages both the init file and the program command line (eval
"blah...")
On 2004-11-25 17:30, "Conrad J. Sabatier" <[EMAIL PROTECTED]> wrote:
>
> OK, I think I've found what you're looking for:
>
> xterm -e "/usr/local/bin/bash --rcfile bash_commands -i"
>
> Substitute your program's startup script for "bash_commands" in the
> above. Using the "-i" switch to bash force
On Thu, 25 Nov 2004, Don Wilde wrote:
> J65nko BSD wrote:
> > On Thu, 25 Nov 2004 10:26:38 -0700, Don Wilde <[EMAIL PROTECTED]> 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 n
It's possible to generate temporary files in a secure manner; there's
probably something in the ports collection to generate good, random
file names. I'm not sure I'd go to so much trouble to avoid using
a file for --init-file or --rc-file.
That aside, you could try using expect to script the bas
On Thu, 25 Nov 2004 11:59:47 -0600, "Conrad J. Sabatier"
<[EMAIL PROTECTED]> wrote:
> On Thu, 2004-11-25 at 10:26 -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
>
When I do this, the program works & interacts, but the xterm dies upon
completion of ticktock or INT. I also do not seem to be able to use the
--rcfile switch as a bash option, although I can add KEY=VALUE pairs
before the xterm launch.
Ideas? Please respond to me directly.
man xterm. There
On Thu, 2004-11-25 at 10:26 -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 i
J65nko BSD wrote:
On Thu, 25 Nov 2004 10:26:38 -0700, Don Wilde <[EMAIL PROTECTED]> 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 ./tickto
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
On Thu, Nov 25, 2004 at 10:26:38AM -0700, Don Wilde wrote:
> completion of ticktock or INT. I also do not seem to be able to use the
> --rcfile switch as a bash option, although I can add KEY=VALUE pairs
> before the xterm launch.
Oops. Didn't notice this until after I replied, but I did test
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
> 's
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
15 matches
Mail list logo