<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Running telnet commands from a C program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898205#M719595</link>
    <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;Is it possible to run telnet commands from a C program.&lt;BR /&gt;&lt;BR /&gt;I know that there is a well known piece of freeware called expect that will do this and a module in perl that can also do this, but has anyone done in C and could you provide a small example.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
    <pubDate>Thu, 06 Feb 2003 10:08:15 GMT</pubDate>
    <dc:creator>Joseph A Benaiah_1</dc:creator>
    <dc:date>2003-02-06T10:08:15Z</dc:date>
    <item>
      <title>Running telnet commands from a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898205#M719595</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;Is it possible to run telnet commands from a C program.&lt;BR /&gt;&lt;BR /&gt;I know that there is a well known piece of freeware called expect that will do this and a module in perl that can also do this, but has anyone done in C and could you provide a small example.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
      <pubDate>Thu, 06 Feb 2003 10:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898205#M719595</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2003-02-06T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running telnet commands from a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898206#M719596</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;There are public domain examples&lt;BR /&gt;&lt;BR /&gt;example&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/curl-7.9.8/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/curl-7.9.8/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                steve Steel</description>
      <pubDate>Thu, 06 Feb 2003 10:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898206#M719596</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-02-06T10:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running telnet commands from a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898207#M719597</link>
      <description>Hi!&lt;BR /&gt;It is no difficult. Look at "man" of&lt;BR /&gt;functions: execve,execv, execl, execle&lt;BR /&gt;Here is simple example of&lt;BR /&gt;C-source of executing command "whoami":&lt;BR /&gt;&lt;BR /&gt;function&lt;BR /&gt;{ execlp("/usr/bin/whoami","whoami",NULL);&lt;BR /&gt;         return 0;}&lt;BR /&gt;&lt;BR /&gt;Regards,Stan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 12:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898207#M719597</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-02-06T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running telnet commands from a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898208#M719598</link>
      <description>And also, &lt;BR /&gt;The easiest way to execute a shell-command is to use standard library routine "system".&lt;BR /&gt;It takes only 1 argument:&lt;BR /&gt;&lt;BR /&gt;main() {&lt;BR /&gt;int stat;&lt;BR /&gt;stat = system("date")&lt;BR /&gt;/* another rows  ...... */&lt;BR /&gt;       }&lt;BR /&gt;&lt;BR /&gt;Chao,Stan.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 13:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-telnet-commands-from-a-c-program/m-p/2898208#M719598</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-02-06T13:06:55Z</dc:date>
    </item>
  </channel>
</rss>

