Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-17-2003, 08:24 PM   #1
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Rep: Reputation: 15
shell script to autologin into a telnet session

I've been using the following ftp script to login to a remote server.

/usr/bin/ftp -n server name <<EOF
user username password
get remote server path local server path
put local server path remote server path

I would also like to autologin into telnet as well.

Is that possible? A detailed explanation would be appreciated. Thanks
Old 11-17-2003, 08:58 PM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I suggest you look into expect. It is very easy to create expect scripts - the package even comes with a script that you can run and capture whatever it is you want to automate. There are a lot of examples to look at if you google around for a bit as well.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we telnet the system using shell script suchi_s Programming 18 02-18-2005 03:43 PM
telnet windows m/c from unix shell script ann124 Programming 1 11-10-2004 02:26 PM
PB launching shell-script with telnet Naurore Member Success Stories 1 08-04-2003 08:42 AM
PB launching shell-script with telnet Naurore Linux - Newbie 1 08-04-2003 05:45 AM
telnet login via shell script lethe Linux - General 8 05-13-2002 10:31 AM

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