LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-10-2006, 03:09 PM   #1
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
looking for some konsole fun...


Hi everyone

I'd like to have a terminal icon on my desktop that opens up konsole with 10 tabs, each tab using a differents schema, and a different command is executed in each tab.

Basically, I have to connect to 10 remote servers thru ssh. I'd like to click on an icon on my desktop and then simply enter my passphrase in each tab. If it could enter my passphrase for me it would be even better.

Right now I have to open konsole, then open 10 tabs, then change the schema in each tabs (I like to have different text colors for each remote host) then enter my ssh command and finally enter my passphrase, which is the same for each host.

I guess I would need a little scrit or something. I can do something similar with this:

Code:
konsole --schema red -e ssh -X -p22354 root@someserver
it works, but 10 konsoles takes a lot of mem, I'd prefer to use tab. Is there a switch that I'm unaware to open a konsole in a tab?

Any tips/help?

Thanks

Yanik
 
Old 05-10-2006, 03:16 PM   #2
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Original Poster
Rep: Reputation: 30
ok, ok, DCOP is the word to look for, I'll post when I get it.
 
Old 05-10-2006, 03:46 PM   #3
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Original Poster
Rep: Reputation: 30
I'm getting somewhere.

Code:
#!/bin/sh
konsole=$(dcopstart konsole-script)

session=$(dcop $konsole konsole newSession)
dcop $konsole $session renameSession asdf
dcop $konsole $session sendSession "ssh -X -p24958 root@asdf"

session=$(dcop $konsole konsole newSession)
dcop $konsole $session renameSession qwer
dcop $konsole $session sendSession "ssh -X -p24958 root@qwer"

session=$(dcop $konsole konsole newSession)
dcop $konsole $session renameSession zxcv
dcop $konsole $session sendSession "ssh -X -p24958 root@zxcv"
The script opens up a konsole then opens tabs with my ssh command. The only thing missing is how do I specify the schema to use for each tab?
 
  


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
Just for fun hyper guy Linux - Newbie 4 03-04-2004 06:07 PM
Various Fun wdavidson Linux - General 4 09-29-2003 10:13 AM
Just for fun neo77777 General 0 09-24-2002 06:42 PM
Just for FUN! How would you... macdudelx Linux - General 18 08-11-2002 01:34 AM
Fun with my new billsabub Linux - Software 4 02-09-2001 03:16 PM

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

All times are GMT -5. The time now is 06:46 AM.

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