Please Help With Net::Telnet Login Prompt 
Author Message
 Please Help With Net::Telnet Login Prompt

Can someone please tell me how to construct a
login prompt from the following information?
I created a script at work which works just
fine, but I can't get it to work on my localhost.
It keeps timing out and I've tried numerous
variations for the prompt regex.
I've also included output from the dump_log file.

-Thanks

Here's the actual telnet login:

/home/super/perls> telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Red Hat Linux release 5.1 (Manhattan)
Kernel 2.0.34 on an i586
login: postgres
Password:
Warning: your password will expire in -1 days
Last login: Sun Sep  6 23:07:58 from localhost
START /home/postgres/.ocaldom.hstry
localhost.localdomain:/home/postgres:

And here's the output from the dump_log file:

/home/super/perls> cat dump_log
< 0x00000: ff fd 18 ff  fd 20 ff fd  23 ff fd 27               ?y.?y
?y#?y'

Quote:
> 0x00000: ff fc 18 ff  fc 20 ff fc  23 ff fc 27               ?.?

?#?'

< 0x00000: ff fb 03 ff  fd 01 ff fd  1f ff fb 05  ff fd 21
??.?y.?y.??.?y!

Quote:
> 0x00000: ff fd 03 ff  fc 01 ff fc  1f ff fe 05  ff fc 21

?y.?.?.?t.?!

< 0x00000: ff fb 01 0d  0a 52 65 64  20 48 61 74  20 4c 69 6e  ??...Red
Hat Lin
< 0x00010: 75 78 20 72  65 6c 65 61  73 65 20 35  2e 31 20 28  ux
release 5.1 (
< 0x00020: 4d 61 6e 68  61 74 74 61  6e 29 0d 0a  4b 65 72 6e
Manhattan)..Kern
< 0x00030: 65 6c 20 32  2e 30 2e 33  34 20 6f 6e  20 61 6e 20  el 2.0.34
on an
< 0x00040: 69 35 38 36  0d 0a                                  i586..

Quote:
> 0x00000: ff fd 01                                            ?y.

< 0x00000: 6c 6f 67 69  6e 3a 20                               login:

Quote:
> 0x00000: 70 6f 73 74  67 72 65 73  0d 0a

postgres..

< 0x00000: 70 6f 73 74  67 72 65 73  0d 0a
postgres..

< 0x00000: 50 61 73 73  77 6f 72 64  3a 20                     Password:

Quote:
> 0x00000: 6e 65 72 64  73 31 0d 0a

mypasswd1..

< 0x00000: 6e 65 72 64  73 31 0d 0a
mypasswd1..



Fri, 23 Feb 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Net::Telnet without a login prompt

2. Net::Telnet prompt acknowledgement, need help

3. Net::Telnet -> mysql login help

4. NET::Telnet prompt woes

5. Net::Telnet and unix prompts/shells

6. Net::Telnet prompt

7. Net::Telnet prompt problem

8. Net::Telnet question, how to set prompt?

9. Net::Telnet prompt

10. Net::Telnet help please

11. Net::Telnet help please

12. REAL Net::Telnet Problem Please Help

 

 
Powered by phpBB® Forum Software