LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Send output to seperate terminals? (https://www.linuxquestions.org/questions/programming-9/send-output-to-seperate-terminals-293911/)

Brain Drop 02-23-2005 11:35 AM

Send output to seperate terminals?
 
Hello,

Is there a way to specify what tab output will go to in konsole?

The reason I ask is that I am working on customizing my environment, what I would like to do is utilize the tab feature of konsole as follows: each time a command is entered, the command itself, with history number and nothing else, should be echoed to one tab, the resulting output of that command should be formatted and echoed to a second tab.

The end I am trying to reach is to have a screen with a history list that I can just <shift><arrow> to view as well as an output history list that is the same way, and the main screen will only display the result of the current command and then be cleared each time new command is entered.

The general scripting of this is not a problem, except as I said, I do not know of a way to send info to different tabs. Maybe there is a way other than konsole to accomplish this? I am not committed to konsole, just used to using the <shift><arrow> to switch terms.

Thanks.

Brain Drop 02-23-2005 05:46 PM

OK, nevermind, I figured it out.

subu_s 02-25-2005 01:18 AM

Hi,
I am interested in knowing the solution if you do not mind.

Regards,
Subu

Brain Drop 02-25-2005 10:44 PM

Sure, quite simple really, just first do w, or who, or finger to see what numbers your terminals are. Example: if I type w on mine I get:

Code:

USER    TTY        LOGIN@  IDLE  JCPU  PCPU WHAT
drew    vc/1      Wed17    2days  3:33  0.00s /bin/sh /usr/X11R6/bin/startx
drew    pts/0    Wed17  31:02m 18:21  17:25  gkrellm2
drew    pts/1    Thu16    0.00s  0.05s  0.01s w
drew    pts/2    Thu16  14:38m  0.69s  0.66s

Then I could output a message to whatever terminal by > /dev/pts/0 or whichever number. The script to utilize this in the manner I was speaking will be worked on this coming week, hopefully.


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