in reply to Re: IP address matching and telnet connections
in thread IP address matching and telnet connections

Thank you for the reply. My program is to be able to use telnet in window without using all these UNIX commands to change directories or retrieve folders/files and etc. First, My program is to use HTML FORM to get user IP address using search user ID(query to database file).when I do search --I found user IP address and NEXT, once I found the user IP address, I need to use the user IP to open telnet using the IP address--using HTML FORM such as: Please enter user IP address: If I enter the IP address for instance 10.0.0.0, then I would be able to connect directly to the IP address 10.0.0.0. NEXT, after getting connected to the IP address 10.0.0.0, (it means connected to the telnet) thru' window. I need to be able to create another HTML form to be able to enter query instead of command. I do need to enter password or anythingelse because this program is restricted to specific personnel. What I means is the people did not know how to use all these UNIX command such as change directories and retrieve file/folders. SO I need to get something to be able to do it in HTML form, replacing the system command. such as: Please choose: option 1: write option 2: read option 3: quit these option must be in the drop down menu in the HTML form.When I choose option 1, I would be able to write into the file and soforth. I had done some part of the program but my biggest problem is to use HTML FORM to enter user IP address and get connected. I would appreciate your help. Thanks
  • Comment on Re: Re: IP address matching and telnet connections

Replies are listed 'Best First'.
Re: (3) IP address matching and telnet connections (Cisco web-interface does this (Updated))
by ybiC (Prior) on Sep 14, 2001 at 18:56 UTC
    If I understand your situation correctly, this is almost exactly what Cisco provides in part of their web interface to their low-end routers.

    It will take me a while, but when I get a chance will check the HTML to see if is legal for me to publicly reproduce.   If so, I'll post here.   I *think* it might do what you want. (or I may just be fullabeans {grin})
        cheers,
        Don
        striving toward Perl Adept
        (it's pronounced "why-bick")

    Update: After a bit of pondering, I don't think the Cisco code/markup would help you, since it executes on each local device and requires a webserver running locally as well.   You appear to want a CGI interface to telnet to *other* hosts, which is a little different matter.   Unless you employ rhosts or the like, you'll have to pass user ID and Password to do this.

    As jlongino suggests, you may want to look into the CPAN modules CGI.pm and Net::Telnet.