<?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 Script execution troubles in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442975#M8289</link>
    <description>Are you running the script as root or as a user?&lt;BR /&gt;If a user, are there any system calls thast require root to execute?&lt;BR /&gt;&lt;BR /&gt;Do set the PATH for the perl stuff. Don't need to do it in /etc/PATH, can do it in the .profile and/or the /etc/profile.</description>
    <pubDate>Wed, 06 Sep 2000 12:43:39 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2000-09-06T12:43:39Z</dc:date>
    <item>
      <title>Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442972#M8286</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;A few weeks ago I installed Perl V5.6.0 on my HP-UX 11.0 system. I've downloaded some perl scripts from O'Reilly's web site that go with the book Learning Perl by Tom Christiansen and Randall Schwartz.&lt;BR /&gt;&lt;BR /&gt;The only modification I've made to any of the scripts is on the first line. My perl is located at /opt/perl5/bin&lt;BR /&gt;&lt;BR /&gt;I do not have the location of my scripts in /etc/PATH&lt;BR /&gt;I go to the location of the script and type:&lt;BR /&gt;./ch01_hello to try  and execute it.&lt;BR /&gt; When ever I try to execute the script I get execute permission denied.&lt;BR /&gt;&lt;BR /&gt;I have chmod 777 on the file. I have also set chown to root sys. &lt;BR /&gt;&lt;BR /&gt;I'm executing the script logged in as root.&lt;BR /&gt;&lt;BR /&gt;Other scripts that I have typed in work fine. Why would I be getting this message...what am I missing?&lt;BR /&gt; &lt;BR /&gt;Thanks for your time.</description>
      <pubDate>Wed, 06 Sep 2000 12:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442972#M8286</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-09-06T12:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442973#M8287</link>
      <description>Does the first line of your script read:-&lt;BR /&gt;#!/opt/perl/bin/perl&lt;BR /&gt;&lt;BR /&gt;If you've missed the /perl from the end it will be trying to execute the directory!&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2000 12:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442973#M8287</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-06T12:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442974#M8288</link>
      <description>Does the first line of the script begin :-&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2000 12:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442974#M8288</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-09-06T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442975#M8289</link>
      <description>Are you running the script as root or as a user?&lt;BR /&gt;If a user, are there any system calls thast require root to execute?&lt;BR /&gt;&lt;BR /&gt;Do set the PATH for the perl stuff. Don't need to do it in /etc/PATH, can do it in the .profile and/or the /etc/profile.</description>
      <pubDate>Wed, 06 Sep 2000 12:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442975#M8289</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-06T12:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442976#M8290</link>
      <description>Lane,&lt;BR /&gt;&lt;BR /&gt;I meant /opt/perl5/bin/perl</description>
      <pubDate>Wed, 06 Sep 2000 12:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442976#M8290</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-06T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442977#M8291</link>
      <description>Lane,&lt;BR /&gt;&lt;BR /&gt;I meant /opt/perl5/bin/perl</description>
      <pubDate>Wed, 06 Sep 2000 12:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442977#M8291</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-06T12:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442978#M8292</link>
      <description>Lane:&lt;BR /&gt;&lt;BR /&gt;Check the following:&lt;BR /&gt;1. on the first line of your ch01_hello script, set the line:&lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;2. Make sure that you have /opt/perl5/bin set up in your /etc/PATH (BEFORE) /usr/contrib/bin  (otherwise the default perl will take over)&lt;BR /&gt;&lt;BR /&gt;3. finally ensure that your that your perl script actually runs with:&lt;BR /&gt;/opt/perl5/bin/perl ./ch01_hello &lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2000 12:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442978#M8292</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-06T12:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442979#M8293</link>
      <description>Wow!&lt;BR /&gt;&lt;BR /&gt;talk about some fast answers!&lt;BR /&gt;&lt;BR /&gt;I changed the first line in my script to /opt/perl5/bin/perl and that solved the problem...I did not want to put perl5 in my PATH yet because I was concerned I might "break" something else on my system...&lt;BR /&gt;&lt;BR /&gt;I take it that when the script executes it reads the first line and uses the perl5 code..is that correct?&lt;BR /&gt;&lt;BR /&gt;Thanks again folks for helping the newbie out!</description>
      <pubDate>Wed, 06 Sep 2000 12:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442979#M8293</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-09-06T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442980#M8294</link>
      <description>Lane:&lt;BR /&gt;&lt;BR /&gt;Actually it is highly unlikely that anything will break with perl5 as opposed to the default perl 4 since perl 5 is a superset (and backwardly compatible with perl 4).&lt;BR /&gt;&lt;BR /&gt;Yes, the #! construct is a common scripting construct in unix to tell the command interpreter where to find the the program that executes the rest of the script... you would do the same if you were programming an awk script etc.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Wed, 06 Sep 2000 13:12:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442980#M8294</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-06T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Script execution troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442981#M8295</link>
      <description>I am glad your perl issue is solved.  Now, please change the permissions on all of those file to 744 (or 700) immediately.  A file owned by root with 777 permissions represents a real security risk, especially as you are likely to be executing these scripts frequently over the next few days.</description>
      <pubDate>Wed, 06 Sep 2000 13:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-execution-troubles/m-p/2442981#M8295</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-09-06T13:57:31Z</dc:date>
    </item>
  </channel>
</rss>

