<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735497#M255220</link>
    <description>Use as,&lt;BR /&gt;&lt;BR /&gt;#crontab -e&lt;BR /&gt;30 10 * * * /usr/bin/find / -name "core" -print &amp;gt; /tmp/test.out 2&amp;gt;/tmp/test.err &lt;BR /&gt;&lt;BR /&gt;save it.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
    <pubDate>Mon, 20 Feb 2006 22:42:13 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2006-02-20T22:42:13Z</dc:date>
    <item>
      <title>cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735491#M255214</link>
      <description>Hi people. how r u. Okay this is what i did to configure my cron job and it didnt work.&lt;BR /&gt;vi /tmp/test2&lt;BR /&gt;1). find / -name core -print &amp;gt; /tmp/test1   &lt;BR /&gt;2). chmod +x /tmp/test2&lt;BR /&gt;3). crontab -e&lt;BR /&gt;4). 30 10 * * * /tmp/test2.sh // i wanted it to run one time at 10:30.&lt;BR /&gt;&lt;BR /&gt;What i was expecting was a file being created /tmp/test1 with the core files in it at 10:30. Can anyone tell me what went wrong???</description>
      <pubDate>Mon, 20 Feb 2006 16:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735491#M255214</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-02-20T16:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735492#M255215</link>
      <description>If you did exactly those steps, you created the script with name "test2", but called it from cron as "test2.sh".</description>
      <pubDate>Mon, 20 Feb 2006 16:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735492#M255215</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-02-20T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735493#M255216</link>
      <description>First, you vi '/tmp/test2' but your have '/tmp/test2/sh' in your cron entry.  Was this just a typing error?&lt;BR /&gt;&lt;BR /&gt;Second, maybe there weren't any core files on your system?  What happens if you run that command from the command line?  Do you get any results in the /tmp/test1 file?&lt;BR /&gt;&lt;BR /&gt;Third, are you sure the statement ran?  Check /var/adm/cron/log and see what the return code was for that script.</description>
      <pubDate>Mon, 20 Feb 2006 16:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735493#M255216</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-02-20T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735494#M255217</link>
      <description>The file the cron is in is /tmp/test2 whose permissions have been changed to executabel, chmod +x /tmp/test2&lt;BR /&gt;/tmp/test1 is the file i want to send the output to, i ran the find / -name core -print command it worked on the shell. and now it 4:57 i wanted it to run at 5pm today only so below is the entry in the crontab&lt;BR /&gt;* 17 * * * /tmp/test2.sh &lt;BR /&gt;</description>
      <pubDate>Mon, 20 Feb 2006 16:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735494#M255217</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-02-20T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735495#M255218</link>
      <description>Like we both said... the script you created isn't the name you used in your crontab entry.&lt;BR /&gt;&lt;BR /&gt;Either:&lt;BR /&gt;&lt;BR /&gt;mv /tmp/test2 /tmp/test2.sh&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;30 10 * * * /tmp/test2</description>
      <pubDate>Mon, 20 Feb 2006 17:15:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735495#M255218</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-02-20T17:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735496#M255219</link>
      <description>2 things: &lt;BR /&gt;&lt;BR /&gt;1) The name of the file MUST be the same in BOTH places.  It must be either /tmp/test2.sh or /tmp/test2.  You must be consistent.  Either rename the file or edit your crontab entry as suggested above.&lt;BR /&gt;&lt;BR /&gt;2)  If you do '* 17 * * *' then your script will run EVERY MINUTE during the the 5PM hour (17:01, 17:02, etc.)  If you just want at 17:00, then '0 17 * * *' is what you want.</description>
      <pubDate>Mon, 20 Feb 2006 17:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735496#M255219</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-02-20T17:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735497#M255220</link>
      <description>Use as,&lt;BR /&gt;&lt;BR /&gt;#crontab -e&lt;BR /&gt;30 10 * * * /usr/bin/find / -name "core" -print &amp;gt; /tmp/test.out 2&amp;gt;/tmp/test.err &lt;BR /&gt;&lt;BR /&gt;save it.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Mon, 20 Feb 2006 22:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735497#M255220</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-20T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735498#M255221</link>
      <description>hi khilari,&lt;BR /&gt;&lt;BR /&gt;you should add this "template" to your crontabs:&lt;BR /&gt;&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |script&lt;BR /&gt;#    |     |of mo|     |of wk|&lt;BR /&gt;#----|-----|-----|-----|-----|--------------------------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this will help you when setting the times of execution of your scripts!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;above all, please check you scripts in isolation before putting it in your crontable!&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 20 Feb 2006 23:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3735498#M255221</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-20T23:11:57Z</dc:date>
    </item>
  </channel>
</rss>

