[arachne] Re: ADSL connect with Telnet * script
- From: "Glenn McCorkle" <glennmcc@xxxxxxxxxx>
- To: arachne@xxxxxxxxxxxxx
- Date: Sun, 20 Apr 2008 15:50:02 -0500
Arachne at FreeLists---The Arachne Fan Club!
On Sun, 20 Apr 2008 18:58:44 +0100, Bastiaan Edelman wrote:
> On Mon, 07 Apr 2008 22:44:07 -0500, Glenn McCorkle wrote:
>> Arachne at FreeLists---The Arachne Fan Club!
>> On Mon, 7 Apr 2008 21:29:50 -0500, Glenn Gilbreath Jr. wrote:
>>> Depends on which telnet you use...if using Clarskson, or Cute,
>>> you can run a script called at commandline,
>>> each command must be on a seperate line in script...press ALT+H
>>> for quick help with telnet (this is the telnet in original telnet.apm).
>>> CU L8R!
>>> Wiz <{;-)
> The telnet I use is Clarkson CUTE:2.2D/TC-D
> But, whatever scriptfile I use it looks as telnet is not using it.
> As soon as the command: telnet 192.168.1.254 has been given I am
> connected with the modem that prompts:
> Username : (cursor)
> I am suspected to type: Administrator (enter)
> After that a kind of logo from the modem is reflected back and at the
> cursor: {Administrator}=>
> It seems I am in the Administrator directory of the modem.
> ** And it seems I have to use the language of the modem and it seems that
> ** is not the telnet command set ;-((
> Now the command: ppp should be given. Result at the cursor:
> {Administrator}[ppp]=>
> I am now in Administrator\ppp directory
> Next command: ifattach intf=Internet
> This connects the modem to internet!
> **************
> The command lookfor "Username :" is not seen in the scriptfile.
> I tried it in the batch file => wrong command or filename
> write "Administrator" is not executed too. In the batchfile: This
> program cannot be run in DOS mode.
> **************
You will need to use CUTE telnet.exe to do a manual login and write-down
what happens at every step.
You can then use that info to write your script.
DOS command line.....
telnet.exe [optional port #] @bastiaan.scr
--- bastiaan.scr ---
flags debug
timeout 60
telnet 192.168.1.254
lookfor "insert here what your ADSL modem says in respose"
flags nocase
write "user your_username\r\n"
lookfor "insert here what your ADSL modem says in respose"
write "pass your_password\r\n"
lookfor "insert here what your ADSL modem says in respose"
write "insert here the command needed to begin the login process\r\n"
lookfor "insert here what your ADSL modem says in respose"
write "insert here the next command to continue the login process\r\n"
lookfor "insert here what your ADSL modem says in respose"
write "insert here the next command to complete the login process\r\n"
______________________________________________
If I understand you correctly.... it should be something like this....
--- bastiaan.scr ---
flags debug
timeout 60
telnet 192.168.1.254
lookfor "Username:"
flags nocase
write "user Administrator\r\n"
lookfor "{Administrator}=>"
write "ppp\r\n"
lookfor "{Administrator}[ppp]=>"
write "ifattach intf=Internet\r\n"
______________________________________________
This line might not need 'user'
write "user Administrator\r\n"
Therefore it might be simply .....
write "Administrator\r\n"
____________________________________________________________________
> Regards, Bastiaan
>> Sample script file.
>> --- sample.scr ---
>> flags debug
>> timeout 60
>> telnet mail.cisnet.com
>> lookfor "OK"
>> flags nocase
>> write "user glennmcc\r\n"
>> lookfor "glennmcc"
>> write "pass mypassword\r\n"
>> lookfor "glennmcc"
>> write "list\r\n"
>> lookfor "message"
>> write "quit\r\n"
>> ______________________________________________
>> command line....
>> telnet 110 @sample.scr
>> (note that port # 110 is needed to connect to the pop3 server)
--
Glenn
http://www.delorie.com/listserv/mime/
http://www.delorie.com/djgpp/doc/msdog.html
http://www.cisnet.com/glennmcc/
http://www.law.cornell.edu/constitution/constitution.table.html
Arachne at FreeLists
-- Arachne, The Premier GPL Web Browser/Suite for DOS --
Other related posts: