LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-25-2014, 01:28 AM   #1
Gunjo
LQ Newbie
 
Registered: Sep 2012
Location: Maharashtra State, India
Distribution: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Posts: 18

Rep: Reputation: Disabled
shell script to login on multiple server.


Hello,

I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.

Please help me.
 
Old 01-25-2014, 02:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Gunjo View Post
I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.
What exactly is it what you need and what is it based upon?

- You talk about each server having its own tab. Which tabbed terminal or program are you using? Would multiple terminals (example: xterm) do, which aren't tabbed.

- You also mention logging into multiple servers. Do you need to log into all the remote servers at once when the script runs? Or do you need/want to log into one or more based on a selection?

- Which mechanism is used to log into the servers?

It would be nice if you showed what you have tried. This might also give us an indication about the above questions.
 
Old 01-25-2014, 02:58 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Isn't this what you're looking for?
http://askubuntu.com/questions/20349...th-two-differe
In short: gnome-terminal --tab -e "command1" --tab -e "command2"

You could also checkout remmina, it's not exactly what you're asking for but might be a good complement.
 
Old 01-25-2014, 11:03 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If you have a large number of servers and aren't using a configuration management tool already, you might look into Puppet, CfEngine, or Chef. It might reduce the amount of time you need to spend logging inrto many servers to do the exact same task.
 
Old 01-26-2014, 11:14 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Gunjo View Post
Hello,
I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.
Please help me.
We'll be glad to HELP you..so show us what you've done/tried of your own and tell us where you're stuck. But we are NOT going to write your scripts for you...and as an administrator, shouldn't YOU be able to write them? Research what tools will fit your environment already?

Show us what you've done/tried of your own, and what your goals are. But a script to login to multiple servers is pointless..unless it actually DOES SOMETHING after it logs in. And depending on what the 'something' is, you may not even NEED a script.
 
Old 12-17-2014, 11:00 PM   #6
Gunjo
LQ Newbie
 
Registered: Sep 2012
Location: Maharashtra State, India
Distribution: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Posts: 18

Original Poster
Rep: Reputation: Disabled
Ok, I will do it.
 
  


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
How to run a Shell Script on multiple server at same time sanjay87 Linux - Server 2 07-20-2012 05:42 AM
Shell Script Commands to Automate Server or Host Telnet Login Session jakesjohn Linux - Software 4 02-08-2010 11:32 PM
Shell Script Commands to Automate Server or Host Telnet Login Session jakesjohn Linux - General 2 02-08-2010 11:28 PM
Connection, login and upload files to ftp server via shell script Paulo Góes Linux - Networking 2 02-21-2004 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:15 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