telnet from c application using libcurl ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jake

    telnet from c application using libcurl ??

    Hi,

    I am trying to make an application in C which must establish a telnet
    session
    with a remote server, execute some scripts on the remote server and close
    down
    the telnet session.

    I have had a look at libcurl since it supports several protocols, but I
    haven't been
    able to figure out if I can use libcurl for the purpose described above.

    Any suggestions to what I could do?

    The application must be programmed in C and the telnet session has to be
    controlled from the same C-application.

    Cheers...





  • Ben Bacarisse

    #2
    Re: telnet from c application using libcurl ??

    "Jake" <jake@nospam.dk writes:
    I am trying to make an application in C which must establish a telnet
    session
    with a remote server, execute some scripts on the remote server and close
    down
    the telnet session.
    >
    I have had a look at libcurl since it supports several protocols, but I
    haven't been
    able to figure out if I can use libcurl for the purpose described above.
    >
    Any suggestions to what I could do?
    >
    The application must be programmed in C and the telnet session has to be
    controlled from the same C-application.
    You will get better answers if you post in a group that discusses
    whatever system you are targeting (e.g. comp.unix.progr ammer if you
    want a POSIX solution). I don't know here to go for help specific to
    libcurl.

    Standard C (the topic here) has no mechanism to do this.

    --
    Ben.

    Comment

    • CBFalconer

      #3
      Re: telnet from c application using libcurl ??

      Jake wrote:
      >
      I am trying to make an application in C which must establish a
      telnet session with a remote server, execute some scripts on the
      remote server and close down the telnet session.
      >
      I have had a look at libcurl since it supports several protocols,
      but I haven't been able to figure out if I can use libcurl for
      the purpose described above.
      >
      Any suggestions to what I could do?
      Yes. First, limit your line lengths to 72 chars (but 67 is
      better). I corrected your post above. Second, post your query on
      a newsgroup where it is topical. telnet protocols, libcurl, etc.
      are not topical on c.l.c, where the topic is standard C, as
      described in K&R or the ISO standards.

      F'ups set.

      --
      [mail]: Chuck F (cbfalconer at maineline dot net)
      [page]: <http://cbfalconer.home .att.net>
      Try the download section.



      --
      Posted via a free Usenet account from http://www.teranews.com

      Comment

      • Richard

        #4
        Re: telnet from c application using libcurl ??

        CBFalconer <cbfalconer@yah oo.comwrites:
        Jake wrote:
        >>
        >I am trying to make an application in C which must establish a
        >telnet session with a remote server, execute some scripts on the
        >remote server and close down the telnet session.
        >>
        >I have had a look at libcurl since it supports several protocols,
        >but I haven't been able to figure out if I can use libcurl for
        >the purpose described above.
        >>
        >Any suggestions to what I could do?
        >
        Yes. First, limit your line lengths to 72 chars (but 67 is
        better). I corrected your post above. Second, post your query on
        a newsgroup where it is topical. telnet protocols, libcurl, etc.
        are not topical on c.l.c, where the topic is standard C, as
        described in K&R or the ISO standards.
        >
        F'ups set.
        >
        --
        [mail]: Chuck F (cbfalconer at maineline dot net)
        [page]: <http://cbfalconer.home .att.net>
        Try the download section.
        Please do not use things like "F'ups". It could mean anything. If you do
        not speak English people will have problems understanding you. I believe
        you lecture people about that on a regular basis.

        Comment

        Working...