LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2009, 12:16 PM   #1
Alexey Bogdnanov
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Terminal with scriptable tabs


Does anyone know terminal emulator with scraptable tabs? I mean t.e. where you can open several tabs with different content by script.
Thanks
 
Old 05-23-2009, 12:21 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Here is a post which explains how to open gnome-terminal with two different tabs and a custom title for each of them. I don't know how to run commands on different tabs (and I can't test it to find out, since I'm using KDE right now).

PS - Googlin' around I found this script to open a tab in a running terminal. You can take a look and see if it works for you.

Last edited by colucix; 05-23-2009 at 12:25 PM.
 
1 members found this post helpful.
Old 05-24-2009, 01:55 AM   #3
Alexey Bogdnanov
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Here is a post which explains how to open gnome-terminal with two different tabs and a custom title for each of them. I don't know how to run commands on different tabs (and I can't test it to find out, since I'm using KDE right now).
I've seen it.
Quote:
PS - Googlin' around I found this script to open a tab in a running terminal. You can take a look and see if it works for you.
Thank you. It realy helped me.

PS.I've found decision for kde too.
Code:
#!/bin/sh
SESSIONS="
IP1
IP2
IP3
IP4
"
KONSOLE=`dcopclient $KONSOLE_DCOP`
CURSESSION=$KONSOLE_DCOP_SESSION
for A in $SESSIONS ; do
NEWSESSION=`dcop $KONSOLE konsole newSession`
dcop $KONSOLE $NEWSESSION renameSession $A
sleep 1s
dcop $KONSOLE $NEWSESSION sendSession "autossh $A"
sleep 1s
#dcop $KONSOLE $NEWSESSION sendSession "echo"
done
dcop $CURSESSION closeSession
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute a command in all tabs in gnome-terminal ganesh_k Linux - Newbie 3 11-01-2008 11:11 AM
Can you dynamically set the title of new tabs in gnome terminal? hroit Linux - General 9 08-23-2007 03:22 PM
Can you dynamically set the title of new tabs in gnome terminal? hroit Linux - General 1 08-13-2007 04:24 AM
Using tabs with Eterm similar to Gnome terminal O(V)eGA_l2el) Fedora 0 11-21-2006 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:54 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
Open Source Consulting | Domain Registration