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)
In reply to Re: Forking an operative terminal
by Anonymous Monk
in thread Forking an operative terminal
by perlgrim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |