Hi

i need help for perl script.

My crob job set as following, i tested on command list working fine. date >> /tmp/mycron.log is running but perl script don't run.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * date >> /tmp/mycron.log; /usr/bin/perl /share/script/Test/report.pl

cron log:

Jul 19 12:30:01 Danny CROND[9154]: (root) CMD (date >> tmp/mycron.log; + perl /share/script/Test/report.pl /share/script/Test/file/ltm_all_no +n_prod) Jul 19 12:30:01 Danny CROND[9155]: (root) CMD (/usr/lib64/sa/sa1 1 1) Jul 19 12:40:01 Danny CROND[9200]: (root) CMD (/usr/lib64/sa/sa1 1 1) Jul 19 12:44:05 Danny crontab[9221]: (root) LIST (root) Jul 19 12:45:01 Danny CROND[9228]: (root) CMD (date >> tmp/mycron.log; + perl /share/script/Test/report.pl /share/script/Test/file/ltm_all_no +n_prod) Jul 19 12:45:30 Danny crontab[9249]: (root) BEGIN EDIT (root) Jul 19 12:46:11 Danny crontab[9249]: (root) REPLACE (root) Jul 19 12:46:11 Danny crontab[9249]: (root) END EDIT (root) Jul 19 12:46:43 Danny crontab[9265]: (root) LIST (root) Jul 19 12:47:01 Danny crond[1403]: (root) RELOAD (/var/spool/cron/root +) Jul 19 12:47:01 Danny CROND[9271]: (root) CMD (date >> /tmp/mycron.log +; perl /share/script/Test/report.pl /share/script/Test/file/ltm_all_n +on_prod) Jul 19 12:48:14 Danny crontab[9293]: (root) BEGIN EDIT (root) Jul 19 12:48:21 Danny crontab[9293]: (root) REPLACE (root) Jul 19 12:48:21 Danny crontab[9293]: (root) END EDIT (root) Jul 19 12:49:01 Danny crond[1403]: (root) RELOAD (/var/spool/cron/root +) Jul 19 12:49:01 Danny CROND[9309]: (root) CMD (date >> /tmp/mycron.log +; perl /share/script/Test/report.pl /share/script/Test/file/ltm_all_n +on_prod) Jul 19 12:50:01 Danny CROND[9363]: (root) CMD (/usr/lib64/sa/sa1 1 1) Jul 19 12:52:22 Danny crontab[9384]: (root) BEGIN EDIT (root) Jul 19 12:52:32 Danny crontab[9384]: (root) REPLACE (root) Jul 19 12:52:32 Danny crontab[9384]: (root) END EDIT (root) Jul 19 12:53:01 Danny crond[1403]: (root) RELOAD (/var/spool/cron/root +) Jul 19 12:53:01 Danny CROND[9391]: (root) CMD (date >> /tmp/mycron.log +; perl /share/script/Test/report.pl /share/script/Test/file/ltm_all_n +on_prod)

In reply to Perl cron job not running by chefchanyu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.