<?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: Shell script &amp;quot;threads&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417414#M707017</link>
    <description>Fred - thanks for the reply. &lt;BR /&gt;</description>
    <pubDate>Mon, 08 Nov 2004 12:34:35 GMT</pubDate>
    <dc:creator>Don Bentz</dc:creator>
    <dc:date>2004-11-08T12:34:35Z</dc:date>
    <item>
      <title>Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417405#M707008</link>
      <description>We run scripts that execute Oracle SQLs, most of them with multiple "steps".  It seems there are cases where a 'ps -ef' will show the "shell script" and sometimes not, even though one of it's "steps" (SQL Scripts) are executing.  Suffice it to say I find it a little difficult to follow the thread when a programmer asks me to kill the "shell script" but they don't know what "step" it's in.</description>
      <pubDate>Mon, 08 Nov 2004 11:18:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417405#M707008</guid>
      <dc:creator>Don Bentz</dc:creator>
      <dc:date>2004-11-08T11:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417406#M707009</link>
      <description>is the SQL script is a subprocess from shell script, then shell script can't "disappear" while SQL still running.&lt;BR /&gt;&lt;BR /&gt;In order not to miss the shell, you can use this command : "UNIX95=true ps -AH -o user,pid,args" which will show you processes in a tree form. You can use grep to get only processes hold by the user you want.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 11:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417406#M707009</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-11-08T11:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417407#M707010</link>
      <description>Fred-&lt;BR /&gt;Well, I suppose I should have been more specific.  According to the "man" pages for "ps" the -A and -H options are only valid for XPG4.  I am certain that your solution would work swell in such a case.  To be honest with you, I don't even know what XPG4 is, but I do know that I get an error when I try to use these options.  I am on HPUX 11.00</description>
      <pubDate>Mon, 08 Nov 2004 11:43:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417407#M707010</guid>
      <dc:creator>Don Bentz</dc:creator>
      <dc:date>2004-11-08T11:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417408#M707011</link>
      <description>I have HPUX 11.0 and I have no problem running the command&lt;BR /&gt;UNIX95= ps -AH -o user,pid,args | grep &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc&lt;/USER&gt;</description>
      <pubDate>Mon, 08 Nov 2004 11:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417408#M707011</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-11-08T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417409#M707012</link>
      <description># UNIX95=`ps -AH -o user,pid,args | grep sched` &lt;BR /&gt;ps: illegal option -- A&lt;BR /&gt;ps: illegal option -- H&lt;BR /&gt;ps: illegal option -- o&lt;BR /&gt;usage: ps [-edaflPx] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]&lt;BR /&gt;&lt;BR /&gt;Perhaps mistakenly I removed the spaces and replaced them with "back tics", &lt;BR /&gt;But thanks anyway.</description>
      <pubDate>Mon, 08 Nov 2004 11:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417409#M707012</guid>
      <dc:creator>Don Bentz</dc:creator>
      <dc:date>2004-11-08T11:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417410#M707013</link>
      <description>no backquote !!!&lt;BR /&gt;just a space between UNIX95= and ps command&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Mon, 08 Nov 2004 11:54:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417410#M707013</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-11-08T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417411#M707014</link>
      <description>So, what is "UNIX95".  I can't find a man page for it and "which" returns nothing.  That construct looked like an "assign" to me(?).</description>
      <pubDate>Mon, 08 Nov 2004 11:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417411#M707014</guid>
      <dc:creator>Don Bentz</dc:creator>
      <dc:date>2004-11-08T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417412#M707015</link>
      <description>Check this link&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1067486990423+28353475&amp;amp;threadId=4177" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1067486990423+28353475&amp;amp;threadId=4177&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Mon, 08 Nov 2004 11:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417412#M707015</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-11-08T11:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417413#M707016</link>
      <description>I made it a little short maybe :)&lt;BR /&gt;&lt;BR /&gt;Switching in XPG4 mode can be done by setting UNIX95 env variable to anything you want (for exemple to "true").&lt;BR /&gt;&lt;BR /&gt;In Unix, you can do the following :&lt;BR /&gt;. Have a var defined for your shell, using "UNIX95=true"on a single line.&lt;BR /&gt;. Have a var defined for your shell and sub-shells, using "export UNIX95=true" on a single line&lt;BR /&gt;. Have a var defined only for the current command, using "UNIX95=true whatevercommandyouwant".&lt;BR /&gt;&lt;BR /&gt;I used the last one. So you have to do exactly the following :&lt;BR /&gt;UNIX95=true ps -AH -o user,pid,args&lt;BR /&gt;(note the space between "UNIX95=true" and "ps".)&lt;BR /&gt;&lt;BR /&gt;I only set UNIX95 for this command, because this XPG4 environment has consequences for many commands and I don't want your environment to be changed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 12:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417413#M707016</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-11-08T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script "threads"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417414#M707017</link>
      <description>Fred - thanks for the reply. &lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 12:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-quot-threads-quot/m-p/3417414#M707017</guid>
      <dc:creator>Don Bentz</dc:creator>
      <dc:date>2004-11-08T12:34:35Z</dc:date>
    </item>
  </channel>
</rss>

