<?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: csh (cgi scripts) occasionally hang in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723681#M721735</link>
    <description>I don't deal much with shell scripting cgi (sh, ksh, csh), but I can give you some things to consider:&lt;BR /&gt;&lt;BR /&gt;Most modern web server support the concept of cgi script timeout - set it to something like 300 seconds.  This timeout kills scripts that hang for indeterminate reasons.&lt;BR /&gt;-look for directives named timeout, cgi timeout, and cgi expiration timeout.&lt;BR /&gt;&lt;BR /&gt;Have your coders add a signal handler in their scripts (probably harder in shell, easier in C and perl) that alarms after n seconds - the handler kills the running process.&lt;BR /&gt;&lt;BR /&gt;Look at things like iPlanet - in their new script model, they unbind the script from the server so that the server isn't penalized for what the script does.&lt;BR /&gt;&lt;BR /&gt;Tune up maxuprc.&lt;BR /&gt;&lt;BR /&gt;Tune up your max server settings in your web server (or threads if that's appropriate).</description>
    <pubDate>Tue, 14 May 2002 17:59:55 GMT</pubDate>
    <dc:creator>Christopher Caldwell</dc:creator>
    <dc:date>2002-05-14T17:59:55Z</dc:date>
    <item>
      <title>csh (cgi scripts) occasionally hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723679#M721733</link>
      <description>I've been working on this problem with one of our developers and like to bounce it off of some of you to get some ideas. Last Friday we took a 10 minute outage due to resource (fork) limit reached for the www user on our web server. I found that the www user had 44 csh (cgi scripts) running for as long as 2 weeks (they should only run for seconds). I have the developer looking into this problem now, it appears that the proper exits are in place in the scripts. The only commonality with all of these scripts is they all source in other files. I'm not aware of a problem using source in cgi scripts, does anyone have an idea what could be causing these scripts to hang? It's also important to note that this problem doesn't happen every time the scripts are run - just occasionally. Thanks for any ideas</description>
      <pubDate>Tue, 14 May 2002 16:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723679#M721733</guid>
      <dc:creator>TD Clark</dc:creator>
      <dc:date>2002-05-14T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: csh (cgi scripts) occasionally hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723680#M721734</link>
      <description>do any of the scripts remove files to which other processes (or other of these similar scripts) may also have access too?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Tue, 14 May 2002 17:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723680#M721734</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-05-14T17:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: csh (cgi scripts) occasionally hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723681#M721735</link>
      <description>I don't deal much with shell scripting cgi (sh, ksh, csh), but I can give you some things to consider:&lt;BR /&gt;&lt;BR /&gt;Most modern web server support the concept of cgi script timeout - set it to something like 300 seconds.  This timeout kills scripts that hang for indeterminate reasons.&lt;BR /&gt;-look for directives named timeout, cgi timeout, and cgi expiration timeout.&lt;BR /&gt;&lt;BR /&gt;Have your coders add a signal handler in their scripts (probably harder in shell, easier in C and perl) that alarms after n seconds - the handler kills the running process.&lt;BR /&gt;&lt;BR /&gt;Look at things like iPlanet - in their new script model, they unbind the script from the server so that the server isn't penalized for what the script does.&lt;BR /&gt;&lt;BR /&gt;Tune up maxuprc.&lt;BR /&gt;&lt;BR /&gt;Tune up your max server settings in your web server (or threads if that's appropriate).</description>
      <pubDate>Tue, 14 May 2002 17:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723681#M721735</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-05-14T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: csh (cgi scripts) occasionally hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723682#M721736</link>
      <description>Mark, good point.  We're looking at that now.</description>
      <pubDate>Tue, 14 May 2002 18:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/csh-cgi-scripts-occasionally-hang/m-p/2723682#M721736</guid>
      <dc:creator>TD Clark</dc:creator>
      <dc:date>2002-05-14T18:03:54Z</dc:date>
    </item>
  </channel>
</rss>

