in reply to Forking an operative terminal
Maybe the -i switch (force interactive) to the shell helps (xterm -e "sh -i -c yourcommand"). If not, I'd put your command into a (temporary) .bashrc or similar. The third option might be starting a new shell after the command: fork() or exec("xterm", "-e", "sh -c 'somecommand; sh'");
(Of course, you should find out the user's preferred shell instead of just using /bin/sh or similar)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Forking an operative terminal
by perlgrim (Initiate) on Dec 31, 2012 at 17:09 UTC | |
by Anonymous Monk on Dec 31, 2012 at 19:03 UTC | |
by Anonymous Monk on Dec 31, 2012 at 19:06 UTC | |
by perlgrim (Initiate) on Jan 01, 2013 at 12:13 UTC |