LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-18-2002, 03:53 AM   #1
gluon
Member
 
Registered: Jun 2001
Location: Switzerland
Distribution: SuSE 8.[012], Gentoo
Posts: 42

Rep: Reputation: 15
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 !
 
Old 07-18-2002, 04:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 07-18-2002, 08:25 AM   #3
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
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
 
Old 07-18-2002, 12:03 PM   #4
gluon
Member
 
Registered: Jun 2001
Location: Switzerland
Distribution: SuSE 8.[012], Gentoo
Posts: 42

Original Poster
Rep: Reputation: 15
Yep !!!

Thank you both of you !!!

gLuON
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't start a terminal!!! FXRS Slackware 17 08-31-2008 10:15 AM
I want to start a prog from another prog but not as child grupoapunte Programming 5 05-23-2005 05:37 PM
Updated libpng, now existing GTK prog won't start anymore - Rh9 rylan76 Linux - Software 1 05-12-2005 01:06 PM
Can't start a terminal blixel Linux - Newbie 1 10-06-2003 06:11 PM
start prog lineakd with X twk Linux - General 1 09-10-2002 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration