<?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 Re: Inetd script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334476#M874337</link>
    <description>forgot to say:&lt;BR /&gt;enter ^M with the characters CTRL-V CTRL-M</description>
    <pubDate>Mon, 19 Jul 2004 08:52:11 GMT</pubDate>
    <dc:creator>Cesare Salvioni</dc:creator>
    <dc:date>2004-07-19T08:52:11Z</dc:date>
    <item>
      <title>Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334471#M874332</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a script that uses inetd.&lt;BR /&gt;It works fine when it uses stdou and when I telnet it, I get all the output, but for some reason when I'm trying to send something to it (I use read command in the script), it just ignores it.&lt;BR /&gt;Are there any samples available how to do it?</description>
      <pubDate>Sun, 18 Jul 2004 07:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334471#M874332</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2004-07-18T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334472#M874333</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;On my system when I do:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;while read a&lt;BR /&gt;do&lt;BR /&gt;echo "$a"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;telnet to that service just echo what I type in&lt;BR /&gt;the telnet, so it should work for you too?&lt;BR /&gt;# telnet 127.0.0.1 32123&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to 127.0.0.1.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;&amp;amp;Ã©&amp;amp;Ã©"Ã©&amp;amp;&lt;BR /&gt;&amp;amp;Ã©&amp;amp;Ã©"Ã©&amp;amp;&lt;BR /&gt;12345&lt;BR /&gt;12345&lt;BR /&gt;&lt;BR /&gt;If there is no endofline charactere, you must use a=$(dd bs=1 count=1</description>
      <pubDate>Mon, 19 Jul 2004 05:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334472#M874333</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-07-19T05:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334473#M874334</link>
      <description>Hello,&lt;BR /&gt;I tried it and I get &lt;BR /&gt;"Connection to host lost." &lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 06:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334473#M874334</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2004-07-19T06:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334474#M874335</link>
      <description>is your file executable?&lt;BR /&gt;do you have anything in the syslog.log?&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 08:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334474#M874335</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-07-19T08:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334475#M874336</link>
      <description>I think that problem is related to new line char which, in TCP connection, is always ^J^M while in unix is only ^J.&lt;BR /&gt;If the server started by inetd is a script try this command to get a line:&lt;BR /&gt;&lt;BR /&gt;read line&lt;BR /&gt;line="$(echo $line|sed 's/^M//')"&lt;BR /&gt;&lt;BR /&gt;this should get the line properly.&lt;BR /&gt;Hope this helps</description>
      <pubDate>Mon, 19 Jul 2004 08:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334475#M874336</guid>
      <dc:creator>Cesare Salvioni</dc:creator>
      <dc:date>2004-07-19T08:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334476#M874337</link>
      <description>forgot to say:&lt;BR /&gt;enter ^M with the characters CTRL-V CTRL-M</description>
      <pubDate>Mon, 19 Jul 2004 08:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334476#M874337</guid>
      <dc:creator>Cesare Salvioni</dc:creator>
      <dc:date>2004-07-19T08:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334477#M874338</link>
      <description>Little example script is attached&lt;BR /&gt;Here are the lines to add:&lt;BR /&gt;&lt;BR /&gt;/etc/services:&lt;BR /&gt;myserv 950/tcp&lt;BR /&gt;&lt;BR /&gt;/etc/inetd.conf:&lt;BR /&gt;myserv stream tcp nowait root /tmp/myserv myserv&lt;BR /&gt;&lt;BR /&gt;save th attached script in /tmp/myserv, chmod it 555 and run inetd -c&lt;BR /&gt;&lt;BR /&gt;check /var/adm/syslog/syslog.log, you should see something like new service added&lt;BR /&gt;&lt;BR /&gt;try to telnet the host on port 950, it should ask u a file name, show i and ask again untill u answer END&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 09:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334477#M874338</guid>
      <dc:creator>Cesare Salvioni</dc:creator>
      <dc:date>2004-07-19T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inetd script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334478#M874339</link>
      <description>Thanx for the help, I did exactly what you recommended, but I mistyped the path to my script and that was the problem ;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2004 03:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inetd-script/m-p/3334478#M874339</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2004-07-21T03:03:21Z</dc:date>
    </item>
  </channel>
</rss>

