LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-23-2005, 12:35 PM   #1
Brain Drop
Member
 
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752

Rep: Reputation: 35
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.
 
Old 02-23-2005, 06:46 PM   #2
Brain Drop
Member
 
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752

Original Poster
Rep: Reputation: 35
OK, nevermind, I figured it out.
 
Old 02-25-2005, 02:18 AM   #3
subu_s
Member
 
Registered: Jun 2004
Posts: 36

Rep: Reputation: 15
Hi,
I am interested in knowing the solution if you do not mind.

Regards,
Subu
 
Old 02-25-2005, 11:44 PM   #4
Brain Drop
Member
 
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752

Original Poster
Rep: Reputation: 35
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python read output from seperate script? bendeco13 Programming 1 02-01-2005 11:38 PM
Can not send cron output to the screen tryingHarder Linux - Newbie 3 09-26-2004 11:11 PM
How do I send output to the printer? Toker Linux - General 2 09-29-2003 11:16 AM
how to send the output to another xterm? abd_bela Programming 2 08-17-2003 01:28 PM
send message to all users on all terminals mrtwice Linux - Newbie 2 06-26-2003 05:59 PM


All times are GMT -5. The time now is 01:09 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration