<?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 not accepting changes in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140764#M50136</link>
    <description>Ivan&lt;BR /&gt;&lt;BR /&gt;I just tried this and still have the smae issue. &lt;BR /&gt;&lt;BR /&gt;/var/spool/cron/root&lt;BR /&gt;-rw------- 1 root root 3.2k Nov 13 12:17 root&lt;BR /&gt;&lt;BR /&gt;-rwsr-xr-x  1 root root 21080 Apr 14 2002 /usr/bin/crontab&lt;BR /&gt;&lt;BR /&gt;The funny thing is I can edit the /var/spool file and crontab -e shows the changes, but a straight edit using crontab -e does not even when :w! is used and states cron was updated, but I suspect the update only refers to the /tmp file and not the actual cron file which is never updated on exit&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Nov 2008 18:28:30 GMT</pubDate>
    <dc:creator>Idris Lirio</dc:creator>
    <dc:date>2008-11-13T18:28:30Z</dc:date>
    <item>
      <title>Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140761#M50133</link>
      <description>I have a problem with linux 7.3 crontab -e not writting the changes to the crontab file. Once crontab is opened for root it generates a file in the /tmp directory which is updated when I make changes and :w!, but after I exit with any other option wq, w, etc the tmp file disappears and the changes are not written to cron. There is also a message saying crontab: no changes made to crontab. any help with this is greatly appreciated.</description>
      <pubDate>Thu, 13 Nov 2008 14:20:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140761#M50133</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-11-13T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140762#M50134</link>
      <description>There could be a permission error?&lt;BR /&gt;I'm not sure where the "crontab -e" file is supposed to be stored.&lt;BR /&gt;But you could just aswell use /etc/crontab or a local crontab file which you can execute by running:&lt;BR /&gt;# crontab /path/to/local/crontab.file&lt;BR /&gt;&lt;BR /&gt;Hope this helps you :)&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
      <pubDate>Thu, 13 Nov 2008 15:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140762#M50134</guid>
      <dc:creator>Fredrik.eriksson</dc:creator>
      <dc:date>2008-11-13T15:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140763#M50135</link>
      <description>Try removing and reinstalling your cron:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; cron.root&lt;BR /&gt;crontab -r&lt;BR /&gt;crontab cron.root&lt;BR /&gt;&lt;BR /&gt;Then try to edit again. This is to ensure that permissions for the cron file are correct.&lt;BR /&gt;&lt;BR /&gt;Also, ensure that the crontab command has the SUID and SGID bit enabled:&lt;BR /&gt;&lt;BR /&gt;# ls -la $(which crontab)&lt;BR /&gt;-rwsr-sr-x 1 root root 311288 mar 14  2007 /usr/bin/crontab&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2008 17:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140763#M50135</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-11-13T17:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140764#M50136</link>
      <description>Ivan&lt;BR /&gt;&lt;BR /&gt;I just tried this and still have the smae issue. &lt;BR /&gt;&lt;BR /&gt;/var/spool/cron/root&lt;BR /&gt;-rw------- 1 root root 3.2k Nov 13 12:17 root&lt;BR /&gt;&lt;BR /&gt;-rwsr-xr-x  1 root root 21080 Apr 14 2002 /usr/bin/crontab&lt;BR /&gt;&lt;BR /&gt;The funny thing is I can edit the /var/spool file and crontab -e shows the changes, but a straight edit using crontab -e does not even when :w! is used and states cron was updated, but I suspect the update only refers to the /tmp file and not the actual cron file which is never updated on exit&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140764#M50136</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-11-13T18:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140765#M50137</link>
      <description>Sometimes, when you have a syntax error in your cron file, for example, a missing value, the changes are not saved.&lt;BR /&gt;&lt;BR /&gt;Â¿Can you upload a txt file with all your procedure?</description>
      <pubDate>Thu, 13 Nov 2008 18:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140765#M50137</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-11-13T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140766#M50138</link>
      <description>check if your / fs is RW mode; You may not have  /tmp as seprate file system now. give  a try..</description>
      <pubDate>Thu, 13 Nov 2008 19:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140766#M50138</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-11-13T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140767#M50139</link>
      <description>The file contains the entire crontab for root</description>
      <pubDate>Thu, 13 Nov 2008 20:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140767#M50139</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-11-13T20:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140768#M50140</link>
      <description>#----------------------&lt;BR /&gt;# Monitor load avg on noble boxes&lt;BR /&gt;#----------------------&lt;BR /&gt;*/5 * * * * /root/monitor/loadavg.pl  &lt;BR /&gt;#----------------------&lt;BR /&gt;&lt;BR /&gt;above entry in your crontab looks to me wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A crontab file has five fields for specifying day , date and time  followed by the command to be run at that interval.&lt;BR /&gt;&lt;BR /&gt;*     *   *   *    *  command to be executed&lt;BR /&gt;-     -    -    -    -&lt;BR /&gt;|     |     |     |     |&lt;BR /&gt;|     |     |     |     +----- day of week (0 - 6) (Sunday=0)&lt;BR /&gt;|     |     |     +------- month (1 - 12)&lt;BR /&gt;|     |     +--------- day of month (1 - 31)&lt;BR /&gt;|     +----------- hour (0 - 23)&lt;BR /&gt;+------------- min (0 - 59)&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2008 03:30:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140768#M50140</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-11-14T03:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140769#M50141</link>
      <description>&amp;gt;Johnson: */5 * * * * /root/monitor/loadavg.pl&lt;BR /&gt;&amp;gt;above entry in your crontab looks to me wrong.&lt;BR /&gt;&lt;BR /&gt;You might want to explain what you think is wrong?  That "*/5" syntax seems to be linux for every 5 minutes.  (Not valid for HP-UX though.)</description>
      <pubDate>Fri, 14 Nov 2008 12:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140769#M50141</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-14T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140770#M50142</link>
      <description>I agree the */5 is a valid entry and we use it on our other 7.3 boxes which happen to be red hat. Sorry for not mentioing that earlier</description>
      <pubDate>Fri, 14 Nov 2008 15:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140770#M50142</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-11-14T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140771#M50143</link>
      <description>I have found a possible cause for this but have not yet found a fix. The problem is with VIM and the way it handles tmp files I ran a stat and posted the results below. The way the stat should look. The Inodes should be the same after the w: and the modify and change times should be different than the access time.&lt;BR /&gt;&lt;BR /&gt;Just After the file was opened:&lt;BR /&gt;  File: "/tmp/crontab.6550"&lt;BR /&gt;  Size: 2463            Blocks: 8          IO Block: -4611708214818369536 Regular File&lt;BR /&gt;Device: 803h/2051d      Inode: 24          Links: 1&lt;BR /&gt;Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)&lt;BR /&gt;Access: Fri Dec 12 10:48:18 2008&lt;BR /&gt;Modify: Fri Dec 12 10:48:18 2008&lt;BR /&gt;Change: Fri Dec 12 10:48:18 2008&lt;BR /&gt;&lt;BR /&gt;After edit and :w to tmp file:&lt;BR /&gt;  File: "/tmp/crontab.6550"&lt;BR /&gt;  Size: 2478            Blocks: 8          IO Block: -4611721408957902848 Regular File&lt;BR /&gt;Device: 803h/2051d      Inode: 24          Links: 1&lt;BR /&gt;Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)&lt;BR /&gt;Access: Fri Dec 12 10:48:18 2008&lt;BR /&gt;Modify: Fri Dec 12 10:48:43 2008&lt;BR /&gt;Change: Fri Dec 12 10:48:43 2008&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem I am having with the VIM editor.&lt;BR /&gt;Vim is creating a new tmp file with every write or save&lt;BR /&gt;Which causes the access, modify, and change times to be the same&lt;BR /&gt;&lt;BR /&gt;  File: "/tmp/crontab.18352"&lt;BR /&gt;  Size: 3079            Blocks: 8          IO Block: -4611692890375057408 Regular File&lt;BR /&gt;Device: 805h/2053d      Inode: 7209236     Links: 1&lt;BR /&gt;Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)&lt;BR /&gt;Access: Fri Dec 12 10:19:28 2008&lt;BR /&gt;Modify: Fri Dec 12 10:19:28 2008&lt;BR /&gt;Change: Fri Dec 12 10:19:28 2008&lt;BR /&gt;&lt;BR /&gt;After the w: on the tmp file:&lt;BR /&gt;  File: "/tmp/crontab.18352"&lt;BR /&gt;  Size: 3094            Blocks: 8          IO Block: -4611692890375057408 Regular File&lt;BR /&gt;Device: 805h/2053d      Inode: 7209239     Links: 1&lt;BR /&gt;Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)&lt;BR /&gt;Access: Fri Dec 12 10:19:56 2008&lt;BR /&gt;Modify: Fri Dec 12 10:19:56 2008&lt;BR /&gt;Change: Fri Dec 12 10:19:56 2008&lt;BR /&gt;&lt;BR /&gt;If anyone has or knows of a way to correct this please advise</description>
      <pubDate>Fri, 12 Dec 2008 17:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140771#M50143</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-12-12T17:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140772#M50144</link>
      <description>&amp;gt;The problem is with VIM and the way it handles tmp files&lt;BR /&gt;&lt;BR /&gt;Why do you think this has anything to do with crontab?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Vim is creating a new tmp file with every write or save, which causes the access, modify, and change times to be the same&lt;BR /&gt;&lt;BR /&gt;What's wrong with that?</description>
      <pubDate>Sat, 13 Dec 2008 07:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140772#M50144</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-13T07:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140773#M50145</link>
      <description>When using crontab -e if the change time is not different from the access time then the temp file is not written back to the original crontab file. This is shown in my previous posting of the stat that I ran on a working server compared to the non working. What I am looking for is a way to get vim to not create a new temp file every time a w or wq is initiated.</description>
      <pubDate>Mon, 15 Dec 2008 15:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140773#M50145</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-12-15T15:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140774#M50146</link>
      <description>&amp;gt;When using crontab -e if the change time is not different from the access time then the temp file is not written back to the original crontab file.&lt;BR /&gt;&lt;BR /&gt;This doesn't make sense.  It should compare the modification time with the previous modification time, when it wrote it.  But I suppose it doesn't like the fact that the inode has changed?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;This is shown in my previous posting of the stat that I ran on a working server compared to the non working.&lt;BR /&gt;&lt;BR /&gt;That's a compelling argument.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;What I am looking for is a way to get vim to not create a new temp file every time a w or wq is initiated.&lt;BR /&gt;&lt;BR /&gt;I'm not sure why it would do that?  In the meantime, could you do the following:&lt;BR /&gt;:w&lt;BR /&gt;:touch %&lt;BR /&gt;:q&lt;BR /&gt;&lt;BR /&gt;That way your modification time should be different from the inode change time.</description>
      <pubDate>Tue, 16 Dec 2008 12:46:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140774#M50146</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-16T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140775#M50147</link>
      <description>The cause of the problem has been located. My /tmp directory is a symlink to another partition with more space which apparently due to the way vim handles files causes crontab -e to not work properly. /tmp must be an actual directory and not a symlink I have tested this and the problem of not saving the crontab went away when /tmp was an actual directory.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help guys and the link below is where I found the answer to the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bugs.gentoo.org/32938" target="_blank"&gt;http://bugs.gentoo.org/32938&lt;/A&gt;</description>
      <pubDate>Tue, 16 Dec 2008 14:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140775#M50147</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-12-16T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab not accepting changes</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140776#M50148</link>
      <description>Solution listed in previous post</description>
      <pubDate>Mon, 22 Dec 2008 14:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-not-accepting-changes/m-p/5140776#M50148</guid>
      <dc:creator>Idris Lirio</dc:creator>
      <dc:date>2008-12-22T14:07:00Z</dc:date>
    </item>
  </channel>
</rss>

