<?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: Another bit of scripting help needed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017699#M129786</link>
    <description>In addition to what has been said:&lt;BR /&gt;&lt;BR /&gt;in HP-UX 11i you have the -x option for ps to list the whole command line.&lt;BR /&gt;&lt;BR /&gt;for HP-UX 11.0 there is a patch to enable this feature.&lt;BR /&gt;&lt;BR /&gt;I believe it was PHCO_26274.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jul 2003 11:27:26 GMT</pubDate>
    <dc:creator>Bernhard Mueller</dc:creator>
    <dc:date>2003-07-08T11:27:26Z</dc:date>
    <item>
      <title>Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017695#M129782</link>
      <description>Hello scripters, I need some help.&lt;BR /&gt;&lt;BR /&gt;I have a few processes, all bases on the same exe, but started with different options.&lt;BR /&gt;All these processes start by listening on a TCP/IP port that I configure.&lt;BR /&gt;&lt;BR /&gt;Now I want to find out which process is listening on what port.&lt;BR /&gt;With "ps -ef" I can't see the "port" option, because the command line is too long. I see all the same processes.&lt;BR /&gt;With "netstat -a" I can see someone is listening on those ports, but I cannot see the process that is doing it.&lt;BR /&gt;&lt;BR /&gt;Can anyone of you help me to connect a listening TCP/IP-port to a process ID ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jul 2003 10:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017695#M129782</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2003-07-08T10:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017696#M129783</link>
      <description>The ps line length has been a problem for a long time, but there is an easy workaround: eliminate the full pathname for the executable by starting the processes with a cd to the directory and running the process with ./ as in:&lt;BR /&gt;&lt;BR /&gt;cd /very/long/path ; ./program -options -moreOptions&lt;BR /&gt;&lt;BR /&gt;The program you need to connect ports to processes is called lsof. Get a copy from: &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;</description>
      <pubDate>Tue, 08 Jul 2003 10:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017696#M129783</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-08T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017697#M129784</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think lsof should be able to do the trick. Lsof also lists the PID of process which has a certain connection open. It might be possible that you have to install it. I believe it is nog included in the standard hp-ux.</description>
      <pubDate>Tue, 08 Jul 2003 10:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017697#M129784</guid>
      <dc:creator>Dagmar Boelen</dc:creator>
      <dc:date>2003-07-08T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017698#M129785</link>
      <description>As mentioned above, lsof wil do this trick.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lsof -i&lt;BR /&gt;&lt;BR /&gt;will list all processes with open tcp or udp ports.&lt;BR /&gt;&lt;BR /&gt;lsof -i:80&lt;BR /&gt;&lt;BR /&gt;will list all processes connected or listening on port 80.&lt;BR /&gt;&lt;BR /&gt;The full syntax woudd be&lt;BR /&gt;&lt;BR /&gt;lsof -i [proto][@host|addr][:svc_list|port_list]</description>
      <pubDate>Tue, 08 Jul 2003 11:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017698#M129785</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-07-08T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017699#M129786</link>
      <description>In addition to what has been said:&lt;BR /&gt;&lt;BR /&gt;in HP-UX 11i you have the -x option for ps to list the whole command line.&lt;BR /&gt;&lt;BR /&gt;for HP-UX 11.0 there is a patch to enable this feature.&lt;BR /&gt;&lt;BR /&gt;I believe it was PHCO_26274.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jul 2003 11:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017699#M129786</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-07-08T11:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Another bit of scripting help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017700#M129787</link>
      <description>lsof&lt;BR /&gt;&lt;BR /&gt;OR, my favorite utility&lt;BR /&gt;&lt;BR /&gt;glance, then do "F" &amp;amp; select process ID&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 08 Jul 2003 11:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-bit-of-scripting-help-needed/m-p/3017700#M129787</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2003-07-08T11:33:39Z</dc:date>
    </item>
  </channel>
</rss>

