LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-17-2003, 08:24 PM   #1
eastj1974
Member
 
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
EOF

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
hw-tph
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.

Håkan
 
  


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 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 LinuxQuestions.org 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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