Nick Rout wrote:
On Thu, Sep 18, 2008 at 9:50 AM, Douglas Royds <[EMAIL PROTECTED]> wrote:
What I would like is to map Alt-F2 to some tool that:
1. Pops up a micro-Bash command line window
2. I enter some Bash command to launch a GUI app and press Enter
3. The command is launched
4. The pop-up box (or whatever) goes away, leaving the child command
running
I read once that the only reason for X is to get more simultaneous
consoles running. I alwaya have an xterm open and find it easy to open
a new tab, type the command and away you go.
But you could map Alt-F2 to a fixed size x-term window, make sure you
add & to the end of the command line and then close it.
I also always have a terminal open, but what I'm looking for is a
two-keystroke overhead: Alt-F2 <command> Enter. Also, most GUI apps have
a habit of dropping cruft to stdout or stderr - stuff that I'm generally
not interested in.
This almost (but not quite) works:
#!/bin/bash
read -e command
${command} &
The problem is that when the parent script exits, it takes the GUI app
out with it. If I don't put in the &, the GUI app continues just fine,
but I'm left with a terminal window lurking around.
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================