In a message dated: Mon, 25 Feb 2002 11:01:39 EST
Benjamin Scott said:
>Hey folks,
>
> I use GNOME. I have a few icons on my panel set to spawn processes in a
>terminal window. The commands look something like this:
>
> gnome-terminal -e 'pine -i'
I believe that wben you use -e, you're exec'ing the process and
thereby *replacing* any shell that may have existed beforehand. It
would be the same as if you did:
gnome-terminal 'bash'
exec pine
> The problem is, when I hit [CTRL]+[Z] in any of these windows, the
>foreground process suspends, but I do not get a shell prompt. The process
>just hangs, and I basically have to nuke the window.
I'm surprised it even suspends. CtrlZ is a shell interupt, isn't it?
If there's no shell to interupt, the you shouldn't have anything
happen! For example, when I do:
xterm -e vi
Then try and hit CtrlZ, nothing happens at all!
> I have tried things like this:
>
> gnome-terminal -e 'bash --login -i -c pine -i'
>
>but get the same behavior. However, if I do this:
>
> gnome-terminal -e 'bash'
>
>and then start 'pine' from the shell prompt, job control works fine.
Right, because you're not "exec'ing" pine, you're running it from
within the shell. Therefore you have job control.
> I get the same behavior for any program I have tried, not just Pine. I
Makes perfect sense to me.
> Normally, I just open new windows, but I'm so used to hitting [CTRL]+[Z]
>to get back to the prompt that sometimes my fingers type it before my
>conscious mind can remember not to, and I lose my Pine session (or
>whatever).
>
> Anyone have any ideas on what I can do to fix this?
Don't hit CtrlZ :) Though, really, I don't understand why it's even
causing you a problem. I've tried everything you've said, and CtrlZ
has no affect at all on the program I run via:
<insert terminal program of choice here> -e <program name>
other than to just beep at me.
--
Seeya,
Paul
----
God Bless America!
If you're not having fun, you're not doing it right!
...we don't need to be perfect to be the best around,
and we never stop trying to be better.
Tom Clancy, The Bear and The Dragon
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************