<?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: Strange out put from same script on different systems. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937123#M112861</link>
    <description>Are both servers running the same version of the OS? I saw this type of difference between HPUX-11 and HPUX-11i (something to do with a change in the way pstat was implemented I seem to recall).&lt;BR /&gt;&lt;BR /&gt;Several scripts we had started fo fail because the command was prefixed by the full path to the shell (in our case perl) - sort of what you're seeing on your L-Class.&lt;BR /&gt;&lt;BR /&gt;Col.</description>
    <pubDate>Thu, 27 Mar 2003 13:50:06 GMT</pubDate>
    <dc:creator>Colin Topliss</dc:creator>
    <dc:date>2003-03-27T13:50:06Z</dc:date>
    <item>
      <title>Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937119#M112857</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am running a shell script on (L-Class)one Server. It is checking that whether same script is running properly or not.&lt;BR /&gt;command used inside the script&lt;BR /&gt;&lt;BR /&gt;" echo `ps -ef|grep -v grep|grep nprparser_start.sh` "&lt;BR /&gt;&lt;BR /&gt;O/P is &lt;BR /&gt;&lt;BR /&gt;metrica 1601 1476 3 13:16:20 pts/0 0:00 sh -v nprparser_start.sh&lt;BR /&gt;metrica 26972 26719 3 16:03:13 pts/1 0:00 /usr/bin/sh ./nprparser_start.sh&lt;BR /&gt;&lt;BR /&gt;When I run the same script on another m/c (K-Class), &lt;BR /&gt;&lt;BR /&gt;O/P I am getting &lt;BR /&gt;metrica 26992 26972 0 16:03:13 pts/1 0:00 ./nprparser_start.sh ./nprparser_start.sh&lt;BR /&gt;&lt;BR /&gt;metrica 26972 26719 3 16:03:13 pts/1 0:00 ./nprparser_start.sh ./nprparser_start.sh&lt;BR /&gt;&lt;BR /&gt;Script is defined to run using POSIX Shell "/usr/bin/sh".&lt;BR /&gt;&lt;BR /&gt;With the same environment setting on the both m/cs for user. But getting different output.&lt;BR /&gt;&lt;BR /&gt;Any pointer.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Rajesh &lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2003 13:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937119#M112857</guid>
      <dc:creator>Rajesh SB</dc:creator>
      <dc:date>2003-03-27T13:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937120#M112858</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like the first box is running your script from two different terminals [pts/0 and pts/1].  The first terminal invoked the script with a 'sh -v' command while the second script just used 'sh' to run it.  On the second box, the script appears to have been run by invoking the script name from the command line.  How are you running the scripts on each system?  By command line, from another script, etc.?&lt;BR /&gt;&lt;BR /&gt;Also, another way of checking to see if your script is running is to use the -C option to specify the command that is running.  That option is for XPG4 only, so you have to set the UNIX95 variable, like this:&lt;BR /&gt;&lt;BR /&gt;UNIX95=1 ps -C nprparser_start.sh&lt;BR /&gt;&lt;BR /&gt;Which saves you a bit of processing and also you don't have to do the 'grep -v grep' craziness.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2003 13:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937120#M112858</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-03-27T13:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937121#M112859</link>
      <description>Here's some discussion about the subject:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J2656-90038/J2656-90038_top.html&amp;amp;con=/hpux/onlinedocs/J2656-90038/00/00/71-con.html&amp;amp;toc=/hpux/onlinedocs/J2656-90038/00/00/71-toc.html&amp;amp;searchterms=Set%20Session%20Parameters%20function&amp;amp;queryid=20030327-063556" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J2656-90038/J2656-90038_top.html&amp;amp;con=/hpux/onlinedocs/J2656-90038/00/00/71-con.html&amp;amp;toc=/hpux/onlinedocs/J2656-90038/00/00/71-toc.html&amp;amp;searchterms=Set%20Session%20Parameters%20function&amp;amp;queryid=20030327-063556&lt;/A&gt;</description>
      <pubDate>Thu, 27 Mar 2003 13:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937121#M112859</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-27T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937122#M112860</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Using 'ps -ef|grep token|grep -v'...syntax isn't the most rigorous way to monitor a process by name.  I suspect that do to command line limitations and/or timing that you are seeing (or not seeing) the additional information.&lt;BR /&gt;&lt;BR /&gt;A better approach is to do:&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -fC &lt;COMMAND&gt;|awk 'NR&amp;gt;1'&lt;BR /&gt;&lt;BR /&gt;This will deliver (or not) the process information for &lt;COMMAND&gt;.  See the 'ps' man pages and the XPG4 (UNIX95) option.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/COMMAND&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Thu, 27 Mar 2003 13:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937122#M112860</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-27T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937123#M112861</link>
      <description>Are both servers running the same version of the OS? I saw this type of difference between HPUX-11 and HPUX-11i (something to do with a change in the way pstat was implemented I seem to recall).&lt;BR /&gt;&lt;BR /&gt;Several scripts we had started fo fail because the command was prefixed by the full path to the shell (in our case perl) - sort of what you're seeing on your L-Class.&lt;BR /&gt;&lt;BR /&gt;Col.</description>
      <pubDate>Thu, 27 Mar 2003 13:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937123#M112861</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2003-03-27T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange out put from same script on different systems.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937124#M112862</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Machine 2 the start time is the same and the &lt;BR /&gt;tty number is the same&lt;BR /&gt;&lt;BR /&gt;machine 1 the ttys and start number are different&lt;BR /&gt;&lt;BR /&gt;O/P is &lt;BR /&gt;&lt;BR /&gt;metrica 1601 1476 3 13:16:20 pts/0 0:00 sh -v nprparser_start.sh &lt;BR /&gt;metrica 26972 26719 3 16:03:13 pts/1 0:00 /usr/bin/sh ./nprparser_start.sh &lt;BR /&gt;&lt;BR /&gt;Thhe first script start at 13:16 the second at 16:03 and that is why it is different&lt;BR /&gt;&lt;BR /&gt;There is probably a fault on this machine&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
      <pubDate>Thu, 27 Mar 2003 13:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-out-put-from-same-script-on-different-systems/m-p/2937124#M112862</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-03-27T13:59:34Z</dc:date>
    </item>
  </channel>
</rss>

