LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-11-2010, 12:02 PM   #1
navie
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
Bash scripting


How to start a remote login session from script to any server? Any suggestions?
Thank you.
 
Old 11-11-2010, 12:21 PM   #2
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 navie View Post
How to start a remote login session from script to any server? Any suggestions?
Thank you.
Going to have to provide details, and ask a clear question, before you can get help.

"Remote login session"...how? SSH, telnet, rsh are all options, and all are different. What do you want to use? Going to prompt for the password, or have it in the script?

Best suggestion for you would be to look on Google for examples of an "expect" script, which does what you're looking for.
 
  


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
bash scripting ZAMO Linux - General 1 01-19-2009 02:25 AM
Reading a bash variable in bash scripting problem freeindy Programming 3 11-27-2008 02:29 AM
help with bash scripting bourne Programming 3 10-21-2007 12:25 PM
Bash Scripting Help Aioth Linux - Newbie 8 09-21-2004 11:21 AM
BASH scripting help Chucklez Linux - Newbie 4 12-12-2002 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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