<?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: ps: option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180202#M682671</link>
    <description>The '-u' option requires either a numeric UID or a userid as an option.&lt;BR /&gt;&lt;BR /&gt;The script you attached says it is doing a 'ps -u ${PROJECT_NAME}....' but I do not see the ${PROJECT_NAME} defined in the first few lines of the script.&lt;BR /&gt;&lt;BR /&gt;You need to get that variable defined appropriately before the script will work.</description>
    <pubDate>Tue, 09 Jun 2009 13:40:21 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2009-06-09T13:40:21Z</dc:date>
    <item>
      <title>ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180201#M682670</link>
      <description>Good Morning, &lt;BR /&gt;&lt;BR /&gt;Hoping this is a simple fix not a scripting guy.. Here is the error I am getting. &lt;BR /&gt;&lt;BR /&gt;# ./startwrx&lt;BR /&gt;&lt;BR /&gt;Starting WRX System.&lt;BR /&gt;&lt;BR /&gt;Give it some time Starting up WRX&lt;BR /&gt;ps: option requires an argument -- u&lt;BR /&gt;usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]&lt;BR /&gt;line&lt;BR /&gt;usage: kill [ -signo ] pid ...&lt;BR /&gt;[root:testomni:/usr2/amv/cmd]&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2009 13:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180201#M682670</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2009-06-09T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180202#M682671</link>
      <description>The '-u' option requires either a numeric UID or a userid as an option.&lt;BR /&gt;&lt;BR /&gt;The script you attached says it is doing a 'ps -u ${PROJECT_NAME}....' but I do not see the ${PROJECT_NAME} defined in the first few lines of the script.&lt;BR /&gt;&lt;BR /&gt;You need to get that variable defined appropriately before the script will work.</description>
      <pubDate>Tue, 09 Jun 2009 13:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180202#M682671</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-06-09T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180203#M682672</link>
      <description>In your attached script, there is a reference to a environment variable called PROJECT_NAME and it is not defined. Your ps command is complaining about this null variable as the -u option requires this variable to be set.</description>
      <pubDate>Tue, 09 Jun 2009 13:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180203#M682672</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-09T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180204#M682673</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Most notably, the variables 'PROJECT_NAME' and 'PROJECT_DIR' are never set.  This cause the usage error you get.&lt;BR /&gt;&lt;BR /&gt;A useful protection against chasing things like this is to begin you script like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;set -u&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 09 Jun 2009 13:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180204#M682673</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-09T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180205#M682674</link>
      <description>Sorry ${PROJECT_NAME} was not set... They are both set in .profiles&lt;BR /&gt;&lt;BR /&gt;I have corrected this but I'm now stuck at this &lt;BR /&gt;&lt;BR /&gt;# ./startwrx&lt;BR /&gt;&lt;BR /&gt;Starting WRX System.&lt;BR /&gt;&lt;BR /&gt;Give it some time Starting up WRX&lt;BR /&gt;line&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180205#M682674</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2009-06-09T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180206#M682675</link>
      <description>Since the line you said you are stuck at, is not in the script itself, I am under the impression that your application is spitting this message. Without knowing what this executable located at ${PROJECT_DIR}/amv/bin/utdbu is, it is almost impossible to say why you are stuck at this point. &lt;BR /&gt;&lt;BR /&gt;If you have support agreement with the vendor of this software, I'd strongly suggest contacting them.</description>
      <pubDate>Tue, 09 Jun 2009 14:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180206#M682675</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-09T14:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180207#M682676</link>
      <description>&lt;!--!*#--&gt;&amp;gt;&amp;gt;Give it some time Starting up WRX&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Since the line you said you are stuck at, is not in the script itself,&lt;BR /&gt;&lt;BR /&gt;Actually, it is.&lt;BR /&gt;&lt;BR /&gt;Here's the section of the script that's causing the delay....&lt;BR /&gt;&lt;BR /&gt;while [ "$systat" -ne "START" ]&lt;BR /&gt;do&lt;BR /&gt;    if [ "$firsttime" != "TRUE" ]; then&lt;BR /&gt; if [ $waittime -le 0 ]; then&lt;BR /&gt;     echo " Unable to Start WRX System! " 1&amp;gt;&amp;amp;2&lt;BR /&gt;     exit 1&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; # wait for a bit&lt;BR /&gt; sleep $sleeptime&lt;BR /&gt; waittime=`expr $waittime - 1`&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;    firsttime="FALSE"&lt;BR /&gt;&lt;BR /&gt;    echo "gc\nf\n2\n\nq\nq\n" | ${PROJECT_DIR}/amv/bin/utdbu |&lt;BR /&gt;    while read line&lt;BR /&gt;    do&lt;BR /&gt; firstarg=`echo $line | awk '{print $1}'`&lt;BR /&gt;        if [ "$firstarg" = "cnflng" ]; then&lt;BR /&gt;           systat=`echo $line | awk '{print $4}'`&lt;BR /&gt;        fi&lt;BR /&gt;    done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It appears that this attempts to start whatever this is.  It gets the status of the process via the 'systat=' line above.  If systat is not equal to START, then it will wait and try again.  Each time through the script the "waittime" is decremented by 1.  So, it will run through the script '90' times, sleeping 10 seconds each time (if I am figuring correctly), so you have a potential delay of 900 seconds (15 minutes) if the system is not starting correctly.</description>
      <pubDate>Tue, 09 Jun 2009 14:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180207#M682676</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-06-09T14:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180208#M682677</link>
      <description>As said by Patrick and Mark, you will need to assign some value to the variable PROJECT_NAME. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Tarun</description>
      <pubDate>Wed, 10 Jun 2009 02:45:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180208#M682677</guid>
      <dc:creator>Tarun Kumra</dc:creator>
      <dc:date>2009-06-10T02:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180209#M682678</link>
      <description>Starting to make sense thank you all.</description>
      <pubDate>Wed, 10 Jun 2009 10:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180209#M682678</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2009-06-10T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ps: option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180210#M682679</link>
      <description>Close, reply... So close. Thanks Again</description>
      <pubDate>Wed, 10 Jun 2009 10:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-option/m-p/5180210#M682679</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2009-06-10T10:33:57Z</dc:date>
    </item>
  </channel>
</rss>

