<?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: unix and cgi scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301329#M670673</link>
    <description>The web page starts with index.html, which loads properly, no problem.  Then, it has two modules.&lt;BR /&gt;&lt;BR /&gt;1. Goes to useradmin.cgi&lt;BR /&gt;2. goes to other functions.&lt;BR /&gt;&lt;BR /&gt;Both modules load properly and second modules work perfectly, since that module has only minimal scripts/functions.&lt;BR /&gt;&lt;BR /&gt;Useradmin.cgi module loads as expected, but inside that different scripts, functions, which calls to different cgi scripts as well as UNIX commands.  These are not functioning.  I have copied all the files from the earlier server and just pasted here on the same location.  &lt;BR /&gt;&lt;BR /&gt;I don't think so, it is a permission issue, because, most of the file has 755 permission. Both servers using the same apache, httpd.conf and other files.&lt;BR /&gt;&lt;BR /&gt;Can I debug this useradmin.cgi script using any tools ?</description>
    <pubDate>Thu, 06 Nov 2008 03:54:30 GMT</pubDate>
    <dc:creator>Shibin_2</dc:creator>
    <dc:date>2008-11-06T03:54:30Z</dc:date>
    <item>
      <title>unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301327#M670671</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I have recently migrated a web-based application from one server to another server.  At first look, there is no problem because, I can see the web-page and can navigate to other html pages.  At one section, we uses a cgi script and the front page of cgi script is visible.  Inside that script, there are several important scripts, which are not at all functioning.  &lt;BR /&gt;&lt;BR /&gt;How can I check or debug this cgi script for the consistency and how do I determine, which module is not functioning?  Any idea. &lt;BR /&gt;&lt;BR /&gt;My httpd.conf allows all for cgi execution (shown below); but the script somehow is not functioning. &lt;BR /&gt;&lt;BR /&gt;ScriptAlias /cgi-bin/ "/apache/cgi-bin/"&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;Allowoverride None&lt;BR /&gt;Options None&lt;BR /&gt;Order allow,deny&lt;BR /&gt;Allow from all&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;AddHandler cgi-script .cgi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2008 03:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301327#M670671</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-06T03:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301328#M670672</link>
      <description>&amp;gt; [...] the front page of cgi script is&lt;BR /&gt;&amp;gt; visible. [...]&lt;BR /&gt;&lt;BR /&gt;Do you mean you are seeing the script itself,&lt;BR /&gt;not the expected output from running the&lt;BR /&gt;script?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] from one server to another server.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; My httpd.conf [...]&lt;BR /&gt;&lt;BR /&gt;What's different between the two servers?&lt;BR /&gt;httpd.conf?  Other files it might include?&lt;BR /&gt;File ownership?  Permissions?</description>
      <pubDate>Thu, 06 Nov 2008 03:41:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301328#M670672</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-11-06T03:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301329#M670673</link>
      <description>The web page starts with index.html, which loads properly, no problem.  Then, it has two modules.&lt;BR /&gt;&lt;BR /&gt;1. Goes to useradmin.cgi&lt;BR /&gt;2. goes to other functions.&lt;BR /&gt;&lt;BR /&gt;Both modules load properly and second modules work perfectly, since that module has only minimal scripts/functions.&lt;BR /&gt;&lt;BR /&gt;Useradmin.cgi module loads as expected, but inside that different scripts, functions, which calls to different cgi scripts as well as UNIX commands.  These are not functioning.  I have copied all the files from the earlier server and just pasted here on the same location.  &lt;BR /&gt;&lt;BR /&gt;I don't think so, it is a permission issue, because, most of the file has 755 permission. Both servers using the same apache, httpd.conf and other files.&lt;BR /&gt;&lt;BR /&gt;Can I debug this useradmin.cgi script using any tools ?</description>
      <pubDate>Thu, 06 Nov 2008 03:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301329#M670673</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-06T03:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301330#M670674</link>
      <description>&amp;gt;Can I debug this useradmin.cgi script using any tools?&lt;BR /&gt;&lt;BR /&gt;Is it perl or a shell script?&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2008 03:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301330#M670674</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-06T03:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301331#M670675</link>
      <description>Perl&lt;BR /&gt;&lt;BR /&gt;Pls have a look on the attached script.</description>
      <pubDate>Thu, 06 Nov 2008 04:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301331#M670675</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-06T04:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301332#M670676</link>
      <description>Shibin,&lt;BR /&gt;&lt;BR /&gt;I notice that the script attached has a blank first line.&lt;BR /&gt;CGI scripts should have the interpreter as the first line (in this case #!/opt/perl/bin/perl)&lt;BR /&gt;&lt;BR /&gt;--Binu&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2008 09:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301332#M670676</guid>
      <dc:creator>Binu George</dc:creator>
      <dc:date>2008-11-07T09:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301333#M670677</link>
      <description>Hi Binu, &lt;BR /&gt;&lt;BR /&gt;The perl interpreter is in proper position.  There is no problem in that.</description>
      <pubDate>Mon, 10 Nov 2008 23:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301333#M670677</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-10T23:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301334#M670678</link>
      <description>Shibin,&lt;BR /&gt;&lt;BR /&gt;One place to look would be the apache error logs (/opt/hpws/apache/logs/error_log on HP-UX).&lt;BR /&gt;Any script error and failures are logged in this file. This information should help debug your script.&lt;BR /&gt;&lt;BR /&gt;--Binu&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Nov 2008 03:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301334#M670678</guid>
      <dc:creator>Binu George</dc:creator>
      <dc:date>2008-11-11T03:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301335#M670679</link>
      <description>Hi Binu, &lt;BR /&gt;&lt;BR /&gt;There is no error reporting in apache error log.  Only notice.  &lt;BR /&gt;&lt;BR /&gt;I was checking this for each activity.  Unfortunately, no errors reported.  Some how the script is not functioning properly.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 11 Nov 2008 15:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301335#M670679</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-11T15:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301336#M670680</link>
      <description>Sibin,&lt;BR /&gt;&lt;BR /&gt;A silly question. Did you restart apache after adding the "ScriptAlias"?&lt;BR /&gt;Also, what is the exact message you see on your browser?&lt;BR /&gt;&lt;BR /&gt;--Binu&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Nov 2008 03:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301336#M670680</guid>
      <dc:creator>Binu George</dc:creator>
      <dc:date>2008-11-12T03:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301337#M670681</link>
      <description>Yes, I did restart the apache.  Unfortunately, nothing is visible in the browser.  When I click the action button, neither goes to next page nor try to load the page.   So, I cannot determine what is exactly happening.  Also, I have created a log file to generate the event, but it only update the time stamps, whenever I clicks.  So, there is no hopeful things, I can't get for troubleshooting.</description>
      <pubDate>Sat, 15 Nov 2008 00:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301337#M670681</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-11-15T00:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301338#M670682</link>
      <description>How can I debug this script?  Can we debug the UNIX script using external tools ?</description>
      <pubDate>Fri, 05 Dec 2008 03:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301338#M670682</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2008-12-05T03:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: unix and cgi scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301339#M670683</link>
      <description>&amp;gt;How can I debug this script? Can we debug the UNIX script using external tools?&lt;BR /&gt;&lt;BR /&gt;You can use a perl debugger.  You can add prints to the script to see where you are.&lt;BR /&gt;&lt;BR /&gt;Or you could try tusc to see what system calls the script is making.  This is useful to see what files are being opened, processes created, etc.</description>
      <pubDate>Fri, 05 Dec 2008 03:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-and-cgi-scripts/m-p/4301339#M670683</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-05T03:21:22Z</dc:date>
    </item>
  </channel>
</rss>

