LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to start a prog in another terminal ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-start-a-prog-in-another-terminal-26045/)

gluon 07-18-2002 03:53 AM

How to start a prog in another terminal ?
 
Hi all,

Is it possible to have a text-based prog started in a shell and executing in another shell (ie redirecting the output of the prog to another shell than the active one) ? It would be cool if it worked under KD3, by running a new 'konsole' for the output of the prog !!!

Hope someone understands my question...

Thanks !

acid_kewpie 07-18-2002 04:13 AM

i don't *think* there's an immediate genuine way to do it, but what you can do is to redirect the output of your program to a temporary file and then start your second terminal with "rxvt -e 'tail -f /tmp/file'" which will show that file as it grows. wrap those files up in a very small shell script and you should be fine

mikek147 07-18-2002 08:25 AM

You can create a script that starts an xterm session. The -e switch allows you to specify any program you want to run in that xterm session. For more information, do a manpage on xterm. Hope this helps. -mk

gluon 07-18-2002 12:03 PM

Yep !!!
 
Thank you both of you !!!

gLuON


All times are GMT -5. The time now is 01:48 AM.