<?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: crontab Perl scrip in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274024#M59567</link>
    <description>hello,&lt;BR /&gt;&lt;BR /&gt;the problem is resolved when I fixed the Oracle home environment variables in the perl script, as follow:&lt;BR /&gt;------------&lt;BR /&gt;BEGIN {&lt;BR /&gt; unless ($ENV{ORACLE_PERL}) {&lt;BR /&gt;  $ENV{ORACLE_HOME} = "/u01/app/oracle/product/10.2.0/db_1";&lt;BR /&gt;  $ENV{ORACLE_PERL} = "$ENV{ORACLE_HOME}/perl";  &lt;BR /&gt;  $ENV{PERL5LIB} = "$ENV{PERL5LIB}:$ENV{ORACLE_PERL}/lib:$ENV{ORACLE_PERL}/lib/site_perl";&lt;BR /&gt;  $ENV{LD_LIBRARY_PATH} = "$ENV{LD_LIBRARY_PATH}:$ENV{ORACLE_HOME}/lib32:$ENV{ORACLE_HOME}/lib";&lt;BR /&gt;  exec "$ENV{ORACLE_PERL}/bin/perl", $0, @ARGV;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;&lt;BR /&gt;Thank you all</description>
    <pubDate>Thu, 17 Feb 2011 19:40:34 GMT</pubDate>
    <dc:creator>mmdallal</dc:creator>
    <dc:date>2011-02-17T19:40:34Z</dc:date>
    <item>
      <title>crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274018#M59561</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;how can I run a perl script from crontab?&lt;BR /&gt;&lt;BR /&gt;BR</description>
      <pubDate>Wed, 16 Feb 2011 08:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274018#M59561</guid>
      <dc:creator>mmdallal</dc:creator>
      <dc:date>2011-02-16T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274019#M59562</link>
      <description>OS is RHEL 4.8</description>
      <pubDate>Wed, 16 Feb 2011 08:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274019#M59562</guid>
      <dc:creator>mmdallal</dc:creator>
      <dc:date>2011-02-16T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274020#M59563</link>
      <description>exactly as you do this from your command line.&lt;BR /&gt;just be sure you have full path to perl binary in your command or in the first line of your script.</description>
      <pubDate>Wed, 16 Feb 2011 08:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274020#M59563</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2011-02-16T08:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274021#M59564</link>
      <description>Hi Vitaly,&lt;BR /&gt;&lt;BR /&gt;in cron:&lt;BR /&gt;&lt;BR /&gt;* * * * * /u01/app/oracle/product/10.2.0/db_1/perl/bin/perl /usr/OVPI/connect.pl &amp;gt;&amp;gt;&amp;amp; /usr/OVPI/test_perl.txt&lt;BR /&gt;&lt;BR /&gt;does not write any in  the file /usr/OVPI/test_perl.txt&lt;BR /&gt;&lt;BR /&gt;but when I run it in the shell it is OK&lt;BR /&gt;&lt;BR /&gt;BR</description>
      <pubDate>Thu, 17 Feb 2011 07:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274021#M59564</guid>
      <dc:creator>mmdallal</dc:creator>
      <dc:date>2011-02-17T07:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274022#M59565</link>
      <description>Maybe merely a typo, the position of the ampersand?&lt;BR /&gt;Do you realy mean to background the connect.pl command?&lt;BR /&gt;Or did you just want to redirect both stdout and stderr to test_perl.txt?&lt;BR /&gt;Then I think it would have to be&lt;BR /&gt;&lt;BR /&gt;* * * * * /u01/app/oracle/product/10.2.0/db_1/perl/bin/perl /usr/OVPI/connect.pl &amp;amp;&amp;gt;&amp;gt;/usr/OVPI/test_perl.txt&lt;BR /&gt;&lt;BR /&gt;But check with man bash in the section REDIRECTIONS if this abbreviated syntax is valid.</description>
      <pubDate>Thu, 17 Feb 2011 12:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274022#M59565</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-02-17T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274023#M59566</link>
      <description>please check email of crontab's owner - you should see the error.&lt;BR /&gt;&lt;BR /&gt;and AFAIK it should be &lt;BR /&gt;&lt;BR /&gt; /u01/app/oracle/product/10.2.0/db_1/perl/bin/perl /usr/OVPI/connect.pl &amp;gt;&amp;gt; /usr/OVPI/test_perl.txt&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Feb 2011 14:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274023#M59566</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2011-02-17T14:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: crontab Perl scrip</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274024#M59567</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;the problem is resolved when I fixed the Oracle home environment variables in the perl script, as follow:&lt;BR /&gt;------------&lt;BR /&gt;BEGIN {&lt;BR /&gt; unless ($ENV{ORACLE_PERL}) {&lt;BR /&gt;  $ENV{ORACLE_HOME} = "/u01/app/oracle/product/10.2.0/db_1";&lt;BR /&gt;  $ENV{ORACLE_PERL} = "$ENV{ORACLE_HOME}/perl";  &lt;BR /&gt;  $ENV{PERL5LIB} = "$ENV{PERL5LIB}:$ENV{ORACLE_PERL}/lib:$ENV{ORACLE_PERL}/lib/site_perl";&lt;BR /&gt;  $ENV{LD_LIBRARY_PATH} = "$ENV{LD_LIBRARY_PATH}:$ENV{ORACLE_HOME}/lib32:$ENV{ORACLE_HOME}/lib";&lt;BR /&gt;  exec "$ENV{ORACLE_PERL}/bin/perl", $0, @ARGV;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;&lt;BR /&gt;Thank you all</description>
      <pubDate>Thu, 17 Feb 2011 19:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-perl-scrip/m-p/5274024#M59567</guid>
      <dc:creator>mmdallal</dc:creator>
      <dc:date>2011-02-17T19:40:34Z</dc:date>
    </item>
  </channel>
</rss>

