Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-24-2011, 08:57 AM   #1
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
How to open multiple tabs automatically !

Hi all.

I am using ubuntu 10.10. I am practicing for my CCIE. I need to do the following just to speed up myself :-)

In ubuntu, while i am in gui (gnome) i want to do the following

1) open a terminal window
2) open 13 tabs (the ones that we open using ctrl+shift+t)
3) on tab1, execute -> telnet 2001
4) on tab2, execute -> telnet 2002
5) so on till telnet 2013

Can i do above stuff automatically like creating some script for it ? pls guide me
Old 05-24-2011, 11:48 AM   #2
Senior Member
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 173Reputation: 173
you can do it with xvkbd

here is example that shuts down Transmission:

b=$(xwininfo -name Transmission | grep Window\ id:\ | awk '{print $4}')
#get programs window id

xvkbd -xsendevent -window $b -text "\Cq"
#send keystroke to quit program


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
why computer work-station hangs, when i open multiple tabs? Kilam orez Linux - Newbie 5 02-08-2010 02:09 AM
want a file browser with multiple tabs sumeet inani Linux - Newbie 4 03-08-2009 11:38 PM
multiple konsole tabs via dcop nilleso Linux - Software 1 04-08-2007 05:38 PM
Firefox - Open with multiple tabs hamstereater Linux - Software 2 09-26-2005 03:22 AM
Multiple tabs in same window using Qt chmeherkch Programming 1 10-30-2003 02:41 PM > Forums > Linux Forums > Linux - Newbie

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

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