<?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: perl in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798365#M81387</link>
    <description>one way to do it...&lt;BR /&gt;&lt;BR /&gt;modify your httpd.conf file and make a change to the "DirectoryIndex" setting.&lt;BR /&gt;&lt;BR /&gt;for this example, I set it to:&lt;BR /&gt;&lt;BR /&gt;DirectoryIndex index.html index.pl&lt;BR /&gt;&lt;BR /&gt;then create a symbolic link to your script.&lt;BR /&gt;&lt;BR /&gt;ln -s /webdir/cgi-bin/script.pl /webdir/htdocs/index.pl&lt;BR /&gt;&lt;BR /&gt;if there's an existing index.html file, move it aside.&lt;BR /&gt;&lt;BR /&gt;Now when the address is pulled up, the index.pl file will be read and execute your script. (don't forget you have to restart apache 1st)&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-denver</description>
    <pubDate>Tue, 03 Sep 2002 03:54:07 GMT</pubDate>
    <dc:creator>Denver Osborn</dc:creator>
    <dc:date>2002-09-03T03:54:07Z</dc:date>
    <item>
      <title>perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798364#M81386</link>
      <description>Hi,&lt;BR /&gt;I have a CGI perl script sample.pl in apache server . This script has to be used as index&lt;BR /&gt;page for the webserver. This script is put in &lt;BR /&gt;third subdirector under /cgi-bin/. What i want&lt;BR /&gt;is that users should not give the complete path to this perl script, But when they give&lt;BR /&gt;the website url like &lt;A href="http://www.sample.com" target="_blank"&gt;www.sample.com&lt;/A&gt; this script&lt;BR /&gt;should be called. ( like index.html )how can be&lt;BR /&gt;this achieved ?.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Sep 2002 02:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798364#M81386</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-03T02:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798365#M81387</link>
      <description>one way to do it...&lt;BR /&gt;&lt;BR /&gt;modify your httpd.conf file and make a change to the "DirectoryIndex" setting.&lt;BR /&gt;&lt;BR /&gt;for this example, I set it to:&lt;BR /&gt;&lt;BR /&gt;DirectoryIndex index.html index.pl&lt;BR /&gt;&lt;BR /&gt;then create a symbolic link to your script.&lt;BR /&gt;&lt;BR /&gt;ln -s /webdir/cgi-bin/script.pl /webdir/htdocs/index.pl&lt;BR /&gt;&lt;BR /&gt;if there's an existing index.html file, move it aside.&lt;BR /&gt;&lt;BR /&gt;Now when the address is pulled up, the index.pl file will be read and execute your script. (don't forget you have to restart apache 1st)&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-denver</description>
      <pubDate>Tue, 03 Sep 2002 03:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798365#M81387</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2002-09-03T03:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798366#M81388</link>
      <description>Hi,&lt;BR /&gt;I have tried it already , But it displays the contents of the script. that's it.&lt;BR /&gt;I gave ExecCGI option to html root also. Still&lt;BR /&gt;problem persists.&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Tue, 03 Sep 2002 07:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798366#M81388</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-03T07:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798367#M81389</link>
      <description>&lt;BR /&gt;#&lt;BR /&gt;# DirectoryIndex: Name of the file or files to use as a pre-written HTML&lt;BR /&gt;# directory index.  Separate multiple entries with spaces.&lt;BR /&gt;#&lt;BR /&gt;&lt;IFMODULE mod_dir.c=""&gt;&lt;BR /&gt;    DirectoryIndex index.html index.php&lt;BR /&gt;&lt;/IFMODULE&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Sep 2002 17:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798367#M81389</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-09-03T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798368#M81390</link>
      <description>Here are the changes I made to a default httpd.conf file.&lt;BR /&gt;____&lt;BR /&gt;&lt;BR /&gt;## added +ExecCGI to options ##&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;    Options Indexes FollowSymLinks +ExecCGI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;## added .pl to AddHandler for cgi-script ##&lt;BR /&gt;&lt;BR /&gt;AddHandler cgi-script .cgi .pl&lt;BR /&gt;____&lt;BR /&gt;&lt;BR /&gt;Rather than add the .pl to AddHandler for cgi-script, I could've just made the link index.cgi and it would've executed the same... as long as I change the "DirectoryIndex" to contain whatever the link is named.&lt;BR /&gt;&lt;BR /&gt;Since you're just getting the text of the script, check the "AddHandler cgi-script" then stop/start apache.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-denver&lt;BR /&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Tue, 03 Sep 2002 17:37:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798368#M81390</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2002-09-03T17:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798369#M81391</link>
      <description>Hi,&lt;BR /&gt;That worked , But the perl script gave error&lt;BR /&gt;that "can't locate perl.pl @INC" because perl.pl is located in original directory not&lt;BR /&gt;under www root directory. &lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Thu, 05 Sep 2002 07:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798369#M81391</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-05T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798370#M81392</link>
      <description>Does it fail after you add these variables to your script?&lt;BR /&gt;____&lt;BR /&gt;&lt;BR /&gt;SCRIPT_FILENAME="/opt/hpapache2/cgi-bin/your_path/perl.pl"&lt;BR /&gt;&lt;BR /&gt;SCRIPT_NAME="/cgi-bin/your_path/perl.pl"&lt;BR /&gt;____&lt;BR /&gt;&lt;BR /&gt;I think this maybe getting more complicated than neccessary... was your intent to keep the path of this script from your users or simplify the way they access it (without havig to type full url?)&lt;BR /&gt;&lt;BR /&gt;If your intent wasn't to hide the path of the script from your users and just simplify the way they access your site... create your index.html file with the following...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Refresh" content="0;URL=http://www.yoursite.com/cgi-bin/yourpath/perl.pl" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-denver</description>
      <pubDate>Thu, 05 Sep 2002 17:03:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798370#M81392</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2002-09-05T17:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798371#M81393</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I did EXACTLY what you are talking about.&lt;BR /&gt;&lt;BR /&gt;Stop your apache server, and edit your conf file.  Modify the line:&lt;BR /&gt;&lt;BR /&gt;From - &lt;BR /&gt;&lt;BR /&gt;DirectoryIndex index.htm&lt;BR /&gt;&lt;BR /&gt;To -&lt;BR /&gt;&lt;BR /&gt;DirectoryIndex cgi-bin/myScript.pl&lt;BR /&gt;&lt;BR /&gt;You can also set the shebang in the first line of your script:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;or whereever your perl binary sits.&lt;BR /&gt;&lt;BR /&gt;- Allan</description>
      <pubDate>Thu, 05 Sep 2002 18:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl/m-p/2798371#M81393</guid>
      <dc:creator>Allan Pincus</dc:creator>
      <dc:date>2002-09-05T18:43:54Z</dc:date>
    </item>
  </channel>
</rss>

