<?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 query in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601359#M40136</link>
    <description>I don't know which distribution of linux you are using or if it makes a difference.&lt;BR /&gt;&lt;BR /&gt;Did you try adding the user in the cron command such as:&lt;BR /&gt;&lt;BR /&gt;*/5 * * * * root /script.changowner &amp;gt; /outputfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;RayB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Mar 2010 11:47:59 GMT</pubDate>
    <dc:creator>Raynald Boucher</dc:creator>
    <dc:date>2010-03-17T11:47:59Z</dc:date>
    <item>
      <title>Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601354#M40131</link>
      <description>&lt;BR /&gt; Hi Folks&lt;BR /&gt;&lt;BR /&gt; I have setup simple a job in root crontab to change permission on a file every 5 minutes forever but the cron doesn't execute the script successfully, I have tried with the below entries and refreshed cron but no difference.&lt;BR /&gt;&lt;BR /&gt;*/5 * * * * /script.changowner &amp;gt; /outputfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;and with&lt;BR /&gt;&lt;BR /&gt;0-59/5 * * * * /script.changeonwer &amp;gt;outputfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Have i got the first entry incorrect in crontab ? and what would be the correct entry ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601354#M40131</guid>
      <dc:creator>Becke</dc:creator>
      <dc:date>2010-03-16T06:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601355#M40132</link>
      <description>When a cron job fails (or when it produces any output that is not redirected elsewhere), cron sends email to the user that owns the cron job.&lt;BR /&gt;&lt;BR /&gt;So, your root account should have received email about each failed attempt. These emails might contain error messages or other clues about the failure reason.&lt;BR /&gt;&lt;BR /&gt;You did not specify the name of the Linux distribution you're using, but assuming your distribution uses the Vixie Cron like most common distributions, your crontab line syntax seems OK.&lt;BR /&gt;&lt;BR /&gt;However, have you really placed the script to the root directory (/) as your crontab lines seem to indicate? The recommended place to put locally-created sysadmin scripts would be /usr/local/sbin. Of course you can choose to ignore this recommendation if you have your reasons for it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 16 Mar 2010 06:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601355#M40132</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-03-16T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601356#M40133</link>
      <description>you need to check a couple of things&lt;BR /&gt;&lt;BR /&gt;ls -lrt /script.changeonwer&lt;BR /&gt;does it have execute permission.&lt;BR /&gt;&lt;BR /&gt;you may out it like&lt;BR /&gt;&lt;BR /&gt;*/5 **** sh /script.changowner &amp;gt; /outputfile 2&amp;gt;/tmp/test&lt;BR /&gt;&lt;BR /&gt;this test file would tell you the exact error and then u can move ahead to resolve the issue.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Tue, 16 Mar 2010 08:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601356#M40133</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-16T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601357#M40134</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Have you established a correct environment for the script you are using? Maybe your script fail to execute because of this.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 16 Mar 2010 09:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601357#M40134</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-16T09:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601358#M40135</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] the cron doesn't execute the script&lt;BR /&gt;&amp;gt; successfully [...]&lt;BR /&gt;&lt;BR /&gt;What, exactly, does that mean?&lt;BR /&gt;&lt;BR /&gt;      ls -l /script.changeonwer&lt;BR /&gt;&lt;BR /&gt;      cat outputfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ls -lrt /script.changeonwer&lt;BR /&gt;&lt;BR /&gt;"rt"?  Why?</description>
      <pubDate>Tue, 16 Mar 2010 12:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601358#M40135</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-16T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601359#M40136</link>
      <description>I don't know which distribution of linux you are using or if it makes a difference.&lt;BR /&gt;&lt;BR /&gt;Did you try adding the user in the cron command such as:&lt;BR /&gt;&lt;BR /&gt;*/5 * * * * root /script.changowner &amp;gt; /outputfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;RayB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Mar 2010 11:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601359#M40136</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2010-03-17T11:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601360#M40137</link>
      <description>The user field is allowed only in the system-wide crontab /etc/crontab.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Mar 2010 13:36:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601360#M40137</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2010-03-17T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab query</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601361#M40138</link>
      <description>firstly chk log in /var/log/cron&lt;BR /&gt;&lt;BR /&gt;and make sure your file has execute permission for files.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2010 15:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-query/m-p/4601361#M40138</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-03-18T15:39:22Z</dc:date>
    </item>
  </channel>
</rss>

