<?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: cron job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739929#M387129</link>
    <description>It depends on how you entering in crontab.&lt;BR /&gt;&lt;BR /&gt;Let's say, if you entered with date and month, then there is no problem, even if the entry exists.  But if you only entered with date, then it will run again on next month.&lt;BR /&gt;&lt;BR /&gt;Btw, are you the author of this question ?  Pls assign points, if you satisfied with answers.</description>
    <pubDate>Wed, 19 Jan 2011 03:29:08 GMT</pubDate>
    <dc:creator>Shibin_2</dc:creator>
    <dc:date>2011-01-19T03:29:08Z</dc:date>
    <item>
      <title>cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739916#M387116</link>
      <description>Dear Experts,&lt;BR /&gt;&lt;BR /&gt;I need to create a cron entry to execute a script.&lt;BR /&gt;I need to execute that script like for this year 2011 as&lt;BR /&gt;29th Jan,&lt;BR /&gt;26th Feb,&lt;BR /&gt;31st Mar,&lt;BR /&gt;28th April,&lt;BR /&gt;31st May,&lt;BR /&gt;30th June,&lt;BR /&gt;29th July,&lt;BR /&gt;30th Aug,&lt;BR /&gt;30th Sep,&lt;BR /&gt;28th Oct,&lt;BR /&gt;30th Nov and&lt;BR /&gt;29th Dec&lt;BR /&gt;&lt;BR /&gt;and the time is at 10:30pm.&lt;BR /&gt;&lt;BR /&gt;Please help me to create a cron job with the above and also explain me the entry how it works.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2011 08:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739916#M387116</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2011-01-18T08:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739917#M387117</link>
      <description>Add this line in your crontab using crontab -e &lt;USERNAME of="" job="" runs=""&gt;&lt;BR /&gt;&lt;BR /&gt;30 22 29 1 * &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This will run on Jan 29th @ 10:30pm. After this, you need to change the date and month to execute for next month.&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 18 Jan 2011 08:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739917#M387117</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-01-18T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739918#M387118</link>
      <description>Another option &lt;BR /&gt;&lt;BR /&gt;30 10 29 * * &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This will run on 29th of the month.  You need to change the date to execute it on another date.</description>
      <pubDate>Tue, 18 Jan 2011 08:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739918#M387118</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-01-18T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739919#M387119</link>
      <description>as simple,&lt;BR /&gt;you can put entries in crontab individualy for each month.&lt;BR /&gt;For eg: for Jan&lt;BR /&gt;30 10 29 1 *   /path/script&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2011 09:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739919#M387119</guid>
      <dc:creator>nijokj</dc:creator>
      <dc:date>2011-01-18T09:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739920#M387120</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;you could run the script every day,&lt;BR /&gt;&lt;BR /&gt;and inside the script you will check if the current day ( os date ) is the same as your list of dates.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 18 Jan 2011 09:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739920#M387120</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2011-01-18T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739921#M387121</link>
      <description>for 10.30 pm jan 29&lt;BR /&gt;&lt;BR /&gt;30 22 29 1 *  /path/script</description>
      <pubDate>Tue, 18 Jan 2011 09:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739921#M387121</guid>
      <dc:creator>nijokj</dc:creator>
      <dc:date>2011-01-18T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739922#M387122</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or include in your script a header that checks the execution on these specific days:&lt;BR /&gt;&lt;BR /&gt;DAY_TO_EXECUTE=`date +%d%m`&lt;BR /&gt;case in $DATE_TO_EXECUE&lt;BR /&gt;do&lt;BR /&gt;  2901|2602|3103|2804|3105|3006|2907|3008|3009|2810|3011|2912) **Include your procedure**&lt;BR /&gt;;;&lt;BR /&gt;  *) exit&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;In this case you needs schedule a daily entry in your crontab to call the script, then the script only executes the conditions filtered into the case syntax.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 18 Jan 2011 09:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739922#M387122</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739923#M387123</link>
      <description>Since there seems to be no clearly-defined rule for when to run (like "last Saturday of each month"), I think a series of "at" jobs would be more appropriate.&lt;BR /&gt;&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Jan 29&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Feb 26&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Mar 31&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Apr 31&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 May 31&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Jun 30&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Jul 29&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Aug 30&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Sep 30&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Oct 28&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Nov 30&lt;BR /&gt;echo "sh /path/to/the/script" | at 1030 Dec 29&lt;BR /&gt;&lt;BR /&gt;For the next year, you'd have to set up a new set of at jobs; unlike cron jobs, at jobs are executed once and then removed from the list of scheduled jobs.&lt;BR /&gt;&lt;BR /&gt;You might want to set up another job to remind yourself (or someone else) of that:&lt;BR /&gt;&lt;BR /&gt;echo "mail -s 'REMINDER: set up a new series of at jobs for 2012' S.S@company.example" | at 1031 Dec 29&lt;BR /&gt;&lt;BR /&gt;Use "at -l" to verify the list of at jobs.&lt;BR /&gt;&lt;BR /&gt;In HP-UX, the cron daemon runs both cron and at jobs. Some other variants of Unix might have a separate "at daemon" for at jobs.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 18 Jan 2011 09:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739923#M387123</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-01-18T09:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739924#M387124</link>
      <description>&lt;P&gt;MK given a wonderful solution with 'at' jobs&lt;BR /&gt;Looks at the alternatives gives by Dennis&lt;BR /&gt;using a shell script&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/Cron-job-scheduling-last-saturday-of-month/m-p/4739252#M29429" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Cron-job-scheduling-last-saturday-of-month/m-p/4739252#M29429&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739924#M387124</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-11-10T17:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739925#M387125</link>
      <description>Be careful with "at" large time scheduling, a system shutdown could happen meanwhile.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 18 Jan 2011 10:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739925#M387125</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739926#M387126</link>
      <description>And why should system shutdown affect 'at' jobs any different from 'cron' jobs?&lt;BR /&gt;&lt;BR /&gt;In HP-UX, at job information is stored in /var/spool/cron/atjobs: I don't see anything that would clear them away at system shutdown/reboot cycle.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 18 Jan 2011 13:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739926#M387126</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-01-18T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739927#M387127</link>
      <description>Matti, please excuse my previous opinion, you have absolutely right! :)</description>
      <pubDate>Tue, 18 Jan 2011 15:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739927#M387127</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739928#M387128</link>
      <description>Dear Experts,&lt;BR /&gt;Thank you for your advises.&lt;BR /&gt;&lt;BR /&gt;I have a query,&lt;BR /&gt;Let's say if i want to use cron scheduler then&lt;BR /&gt;suppose if i added all the entries starting from jan to dec in crontab file.&lt;BR /&gt;After successfully executed the script in Jan month. If i missed out to remove the Jan entry in crontab, even though also there shouldn't be any problem right?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jan 2011 03:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739928#M387128</guid>
      <dc:creator>Canon_3</dc:creator>
      <dc:date>2011-01-19T03:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739929#M387129</link>
      <description>It depends on how you entering in crontab.&lt;BR /&gt;&lt;BR /&gt;Let's say, if you entered with date and month, then there is no problem, even if the entry exists.  But if you only entered with date, then it will run again on next month.&lt;BR /&gt;&lt;BR /&gt;Btw, are you the author of this question ?  Pls assign points, if you satisfied with answers.</description>
      <pubDate>Wed, 19 Jan 2011 03:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739929#M387129</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-01-19T03:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739930#M387130</link>
      <description>&amp;gt;Swetha: If I missed out to remove the Jan entry in crontab, even though also there shouldn't be any problem right?&lt;BR /&gt;&lt;BR /&gt;It may have a problem if you don't want it to run a year later.</description>
      <pubDate>Wed, 19 Jan 2011 11:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/4739930#M387130</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-19T11:37:27Z</dc:date>
    </item>
  </channel>
</rss>

