LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Terminal with scriptable tabs (https://www.linuxquestions.org/questions/linux-software-2/terminal-with-scriptable-tabs-728029/)

Alexey Bogdnanov 05-23-2009 12:16 PM

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

colucix 05-23-2009 12:21 PM

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.

Alexey Bogdnanov 05-24-2009 01:55 AM

Quote:

Originally Posted by colucix (Post 3550402)
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



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