Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Automating Telnet

Automating Telnet

Scheduled Pinned Locked Moved C#
sysadmintutorialquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Green Fuze
    wrote on last edited by
    #1

    Hi everybody :-) I'm looking for a way to automate telnet. I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want... Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point). Thanks alot!

    T N A 3 Replies Last reply
    0
    • G Green Fuze

      Hi everybody :-) I'm looking for a way to automate telnet. I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want... Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point). Thanks alot!

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello If your telnet is a console, I don't know if this would work or not but you may give it a try!! Even consoles in WinXP are considered windows to some extent!! Than means that the window in which the console is displayed on is still a window and still has a handle. Try sending it messages with key strokes using Windows API SendMessage() function.

      Regards:rose:

      1 Reply Last reply
      0
      • G Green Fuze

        Hi everybody :-) I'm looking for a way to automate telnet. I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want... Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point). Thanks alot!

        T Offline
        T Offline
        trosten
        wrote on last edited by
        #3

        you can use Expect http://expect.nist.gov/[^]

        1 Reply Last reply
        0
        • G Green Fuze

          Hi everybody :-) I'm looking for a way to automate telnet. I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want... Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point). Thanks alot!

          A Offline
          A Offline
          Arjun Mjolnir Bahree
          wrote on last edited by
          #4

          What do you mean by automation? Implementing the Telnet protocol with the server shall do this easily and you can find tons of example on this

          Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

          G 1 Reply Last reply
          0
          • A Arjun Mjolnir Bahree

            What do you mean by automation? Implementing the Telnet protocol with the server shall do this easily and you can find tons of example on this

            Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

            G Offline
            G Offline
            Green Fuze
            wrote on last edited by
            #5

            sorry for the ignorance, but how do I implement telnet protocol ? (or can you at least direct me to an example). Its the first time I'm trying to implement a protocol :-)

            A 1 Reply Last reply
            0
            • G Green Fuze

              sorry for the ignorance, but how do I implement telnet protocol ? (or can you at least direct me to an example). Its the first time I'm trying to implement a protocol :-)

              A Offline
              A Offline
              Arjun Mjolnir Bahree
              wrote on last edited by
              #6

              No Problemo Buddy. I am in India and it 2 AM here. Gotta catch some sleep :)) Would it do if i sent you an implementation done earlier? Would that help? Send me your id and will mail it to you.... YAWN!!! Sleepy I am :))

              Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

              G 2 Replies Last reply
              0
              • A Arjun Mjolnir Bahree

                No Problemo Buddy. I am in India and it 2 AM here. Gotta catch some sleep :)) Would it do if i sent you an implementation done earlier? Would that help? Send me your id and will mail it to you.... YAWN!!! Sleepy I am :))

                Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

                G Offline
                G Offline
                Green Fuze
                wrote on last edited by
                #7

                hey, it would be a great help if you would just give me an article or something. I will start looking for one again. Thanks again! :-)

                1 Reply Last reply
                0
                • A Arjun Mjolnir Bahree

                  No Problemo Buddy. I am in India and it 2 AM here. Gotta catch some sleep :)) Would it do if i sent you an implementation done earlier? Would that help? Send me your id and will mail it to you.... YAWN!!! Sleepy I am :))

                  Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

                  G Offline
                  G Offline
                  Green Fuze
                  wrote on last edited by
                  #8

                  Hey, I got it myself! :-) Thanks anyway!!!

                  A 1 Reply Last reply
                  0
                  • G Green Fuze

                    Hey, I got it myself! :-) Thanks anyway!!!

                    A Offline
                    A Offline
                    Arjun Mjolnir Bahree
                    wrote on last edited by
                    #9

                    Well I am talking about a full fledged telnet client, that I had to code for one of my projects, to enable citrix console guys to hook in as per the policy defined. Anyways, good that you found soemthing. Many fo the samples out there, but then they have some potential loose ends as far as i have seen.

                    Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups