LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-09-2005, 04:38 AM   #1
mbjunior99
Member
 
Registered: Feb 2004
Posts: 34

Rep: Reputation: 15
Automated Telnet Login


I am trying to write an automated script which will do an automated telnet login, execute a few commands, and then exit but I can't seem to get it to work.

The reason that I want to do this is my ADSL router locks up every few weeks and I then need to power it off and on again. According to the maufacturer, the NAT tables are filling up but not clearing quickly enough. To fix this issue, they have released a few firmware updates but none have worked.
If I could write a script to reboot the router for me, I could then add it to cron.weekly and I wouldn't have to worry about router lockups any longer.

I found this on another site but this doesn't seem to work under mandrake 10.1:

(sleep 3; echo username; sleep 3; echo password; sleep 5; echo "ls -l"; sleep 3; echo "exit") | telnet IP Address

Anyone able to help out?
 
Old 04-09-2005, 06:19 PM   #2
mbjunior99
Member
 
Registered: Feb 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Anyone????
 
Old 04-11-2005, 12:49 AM   #3
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
Sounds like a ActionTec router.
 
Old 04-13-2005, 05:52 AM   #4
mbjunior99
Member
 
Registered: Feb 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Nope. Billion
 
  


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
Automated scp - needs paraphrase-less login? michaelsanford Linux - Networking 3 07-21-2005 12:14 AM
Auto login with telnet taureanyang Programming 2 06-14-2005 01:33 AM
SSH login attempts - how to get rid of the automated malware? alexberk Linux - Security 1 05-24-2005 04:57 AM
telnet auto-login anthjaz Linux - Networking 15 11-04-2003 01:28 PM
Telnet login as root macone Linux - Security 7 11-13-2002 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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