running a program in the background in the child emulator process
Hi all,
I wonder how one can, if at all, run an X program in the background *in an emulator sub-shell process*. What I mean is to launch a program in an emulator, e.g, by xterm -e gedit but with gedit (in this example) running in the background from inside the xterm sub-process, so that the xterm will accept other commands. In the above, gedit will run in the foreground, and of course, if you do xterm -e gedit & then xterm will run in the background, not gedit. In short, I would like to achieve the same thing as "gedit &" as you manually do in xterm, but from another shell. What I aim to do is write an X init script to achieve this result (to have the emulator open and a program or two running from it, in the background, at the X startup). Help would be appreciated |
Interesting problem...
I was able to make it work this way. Create a shell script, and make it executable: Code:
#! /bin/sh Code:
xterm -e './geditsh; bash' --- rod. |
Quote:
Quote:
|
All times are GMT -5. The time now is 11:23 PM. |