<?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: ksh hangs when execute wait command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024577#M909765</link>
    <description>Quick question:&lt;BR /&gt;&lt;BR /&gt;how do you generate your data1 file (i.e. your filelist)?&lt;BR /&gt;&lt;BR /&gt;could it be that *sometimes* there are filesnames in it with blanks (from a Samba share or so) or some other characters that make the execution problematic?&lt;BR /&gt;&lt;BR /&gt;to debug you might use set -x or&lt;BR /&gt;just echo the command that should be exectued to a logfile.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
    <pubDate>Wed, 16 Jul 2003 12:01:36 GMT</pubDate>
    <dc:creator>Bernhard Mueller</dc:creator>
    <dc:date>2003-07-16T12:01:36Z</dc:date>
    <item>
      <title>ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024571#M909759</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a hanging problem inside a script when we execute a wait command after a sequence of background procesess.&lt;BR /&gt;&lt;BR /&gt;Anyone know a bug on HP-UX 11.11, ksh and wait command ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 15 Jul 2003 17:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024571#M909759</guid>
      <dc:creator>Xavier Mancho Ferreras</dc:creator>
      <dc:date>2003-07-15T17:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024572#M909760</link>
      <description>Well, the wait is supposed to "hang" until all the background tasks have completed (if no argument is supplied) or until a specified background process is finished if a PID is supplied as an argument to wait.&lt;BR /&gt;&lt;BR /&gt;It would probably be helpful if you explained the problem a bit more -- and do you know that the background process(es) have finished?.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jul 2003 17:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024572#M909760</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-15T17:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024573#M909761</link>
      <description>Some processes in a 2-or-more-stage pipeline may not be children of&lt;BR /&gt;      the shell, and thus cannot be waited for.</description>
      <pubDate>Tue, 15 Jul 2003 17:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024573#M909761</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-07-15T17:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024574#M909762</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Explain more the problem,&lt;BR /&gt;add the script that we all could see and help&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Tue, 15 Jul 2003 17:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024574#M909762</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-15T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024575#M909763</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; the script wich i have problem is:&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;  cat data1 | while read valor&lt;BR /&gt;  do&lt;BR /&gt;      JLSC $valor &amp;amp;&lt;BR /&gt;  done&lt;BR /&gt;  &lt;BR /&gt;  wait&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt; after executing and finshing all JLSC processes the script remaing 'waiting' for.&lt;BR /&gt;&lt;BR /&gt; data1 is a file with a list of files to be params of JLSC.&lt;BR /&gt;&lt;BR /&gt; JLSC is a short 'C' program.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 06:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024575#M909763</guid>
      <dc:creator>Xavier Mancho Ferreras</dc:creator>
      <dc:date>2003-07-16T06:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024576#M909764</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;sorry, i forgot a important information:&lt;BR /&gt;  this only occurs sometimes not always !&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 06:41:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024576#M909764</guid>
      <dc:creator>Xavier Mancho Ferreras</dc:creator>
      <dc:date>2003-07-16T06:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024577#M909765</link>
      <description>Quick question:&lt;BR /&gt;&lt;BR /&gt;how do you generate your data1 file (i.e. your filelist)?&lt;BR /&gt;&lt;BR /&gt;could it be that *sometimes* there are filesnames in it with blanks (from a Samba share or so) or some other characters that make the execution problematic?&lt;BR /&gt;&lt;BR /&gt;to debug you might use set -x or&lt;BR /&gt;just echo the command that should be exectued to a logfile.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Wed, 16 Jul 2003 12:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024577#M909765</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-07-16T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: ksh hangs when execute wait command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024578#M909766</link>
      <description>There was a subtle bug in the 11.0 ksh that was fixed but that does not apply to 11.11. I would try to run this under the POSIX shell and see if the problem persists. NOTE: In HP-UX /bin/sh (or /usr/bin/sh) is NOT the Bourne shell; it's the POSIX shell. There is really no reason to run the Korn shell because POSIX&lt;BR /&gt;is actually a superset of Korn and anything that you can do in the Korn shell, you can do in the POSIX shell. It would be a good thing to know if all of child processes have finished and did they spawn any processes?&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 13:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-hangs-when-execute-wait-command/m-p/3024578#M909766</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-16T13:19:49Z</dc:date>
    </item>
  </channel>
</rss>

