<?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: Unable to set up cron job HP UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783695#M640995</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But at 3.20 pm the script doesnâ  t execute.I have edited the cron in Linux in the exact same way and it runs perfectly.&lt;BR /&gt;&lt;BR /&gt;So, does it execute at 5, 35 and 50 minutes after every hour?&lt;BR /&gt;&lt;BR /&gt;Does the script ever execute under 'cron' in your HP-UX environment?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also,please explain to me what the numbers 5,20,35,50 mean in HP-UX cron.&lt;BR /&gt;&lt;BR /&gt;# man crontab&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 03 May 2011 11:53:14 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2011-05-03T11:53:14Z</dc:date>
    <item>
      <title>Unable to set up cron job HP UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783692#M640992</link>
      <description>&lt;BR /&gt;Hallo!I am a total newbie to HP-UX Itanium but have prior experience with Linux.I am trying to set up a cron job to run a script called testscript  everyday at 3.20 pm.I have edited the cron script via crontab –e as below&lt;BR /&gt;&lt;BR /&gt;5   1    *    *    *    /opt/psb/vacuum&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/psb/bin/restart_logserv.sh&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/raidsaprovider/bin/restart_raidsaprovider.&lt;BR /&gt;sh&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/sas/provider/bin/restart_sasprovider.sh&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/sfm/bin/restart_sfm.sh&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/fcprovider/bin/restart_fcprovider.sh&lt;BR /&gt;5,20,35,50   *    *    *    *    /opt/dasprovider/bin/restart_dasprovider.sh&lt;BR /&gt;&lt;BR /&gt;20 15  *  *  *    /d01/testscript.sh&lt;BR /&gt;&lt;BR /&gt;But at 3.20 pm the script doesn’t execute.I have edited the cron in Linux in the exact same way and it runs perfectly.&lt;BR /&gt;&lt;BR /&gt;Why cant it run in HP-UX?Also,please explain to me what the numbers 5,20,35,50  mean in HP-UX cron.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2011 11:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783692#M640992</guid>
      <dc:creator>4joey1</dc:creator>
      <dc:date>2011-05-03T11:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set up cron job HP UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783693#M640993</link>
      <description>The most important thing is that use full path instead of relative patch due to shell restrictions by cron;&lt;BR /&gt;look at you script and use full path in every command you put..&lt;BR /&gt;&lt;BR /&gt;Also ,you can check /var/adm/cron/log&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2011 11:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783693#M640993</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-05-03T11:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set up cron job HP UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783694#M640994</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;#man crontab&lt;BR /&gt;&lt;BR /&gt;from left: minute hour monthday month weekday&lt;BR /&gt;&lt;BR /&gt;If your script doesn't execute, you can check /var/adm/cron/log for more information .&lt;BR /&gt;&lt;BR /&gt;Are you able to execute the script without using cron?</description>
      <pubDate>Tue, 03 May 2011 11:53:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783694#M640994</guid>
      <dc:creator>g3jza</dc:creator>
      <dc:date>2011-05-03T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set up cron job HP UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783695#M640995</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But at 3.20 pm the script doesnâ  t execute.I have edited the cron in Linux in the exact same way and it runs perfectly.&lt;BR /&gt;&lt;BR /&gt;So, does it execute at 5, 35 and 50 minutes after every hour?&lt;BR /&gt;&lt;BR /&gt;Does the script ever execute under 'cron' in your HP-UX environment?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also,please explain to me what the numbers 5,20,35,50 mean in HP-UX cron.&lt;BR /&gt;&lt;BR /&gt;# man crontab&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 May 2011 11:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783695#M640995</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-05-03T11:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set up cron job HP UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783696#M640996</link>
      <description>Welcome to ITRC Forums!&lt;BR /&gt;&lt;BR /&gt;Is the script marked as executable?&lt;BR /&gt;e.g.&lt;BR /&gt;chmod a+x /d01/testscript.sh&lt;BR /&gt;&lt;BR /&gt;Look in your local email inbox (/var/mail/&lt;USERNAME&gt;): any error messages the cron job may produce will be mailed to the user that owns the cron job. The error messages should indicate what's the problem with executing your script.&lt;BR /&gt;&lt;BR /&gt;In HP-UX, the environment of cron jobs is very rudimentary: one of the first lines of your script should probably be:&lt;BR /&gt;. /etc/PATH&lt;BR /&gt;to load the same PATH environment variable value that is used by regular login sessions.&lt;BR /&gt;&lt;BR /&gt;Look in /var/adm/cron/log: there should be a record indicating the start and stop times of your job. If the stop time record includes "rc=&lt;NUMBER&gt;", then your job returned an error code.&lt;BR /&gt;&lt;BR /&gt;The numbers like &lt;BR /&gt;5,20,35,50 * * * *&lt;BR /&gt;mean the job is scheduled to run at xx:05, xx:20, xx:35 and xx:50 each hour.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/NUMBER&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 03 May 2011 12:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-set-up-cron-job-hp-ux/m-p/4783696#M640996</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-05-03T12:02:57Z</dc:date>
    </item>
  </channel>
</rss>

