<?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 edit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812861#M84757</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;While "crontab -e" is a perfectly acceptable way to edit your crontab, I prefer to make changes to a copy of my crontab then implement it.  Here's how:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt;cron.file&lt;BR /&gt;vi cron.darrell&lt;BR /&gt;(make my changes)&lt;BR /&gt;crontab cron.file&lt;BR /&gt;&lt;BR /&gt;I just find this safer.&lt;BR /&gt;&lt;BR /&gt;And as you have discovered, never directly edit /var/spool/cron/crontabs files directly.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Wed, 25 Sep 2002 11:58:39 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2002-09-25T11:58:39Z</dc:date>
    <item>
      <title>crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812857#M84753</link>
      <description>I changed cron this way:&lt;BR /&gt;vi /var/spool/cron/crontab/user&lt;BR /&gt;&lt;BR /&gt;this change has no affect and system has in memory old cron file.&lt;BR /&gt;I tried &lt;BR /&gt;kill -1 (/usr/sbin/cron)&lt;BR /&gt;but this is not that proces becouse also without affect to system.&lt;BR /&gt;&lt;BR /&gt;Which process is responsible for running a cron and what I have to do to reread new cron.&lt;BR /&gt;&lt;BR /&gt;I understand the common way crontab -e , l ...&lt;BR /&gt;but for some purposes I would like to understand this way. &lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2002 06:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812857#M84753</guid>
      <dc:creator>Petr Simik</dc:creator>
      <dc:date>2002-09-25T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812858#M84754</link>
      <description>For a normal user to use crontab you should have entry in the cron.allow in /var/adm/cron.&lt;BR /&gt;&lt;BR /&gt;You should edit the crontab file using&lt;BR /&gt;EDITOR=vi;export EDITOR&lt;BR /&gt;crontab -e &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;you can restart cron using &lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 25 Sep 2002 06:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812858#M84754</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-09-25T06:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812859#M84755</link>
      <description>Hi,Peter&lt;BR /&gt;&lt;BR /&gt;#crontab -e username, creates a crontab file for that user. The user must ahve a entry in  &lt;BR /&gt;/var/adm/cron/cron.allow file.&lt;BR /&gt;&lt;BR /&gt;you can restart cron using &lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop &lt;BR /&gt;/sbin/init.d/cron start. &lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2002 06:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812859#M84755</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-09-25T06:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812860#M84756</link>
      <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt; - First, check your current crontab file:&lt;BR /&gt; crontab -l &amp;gt; cronfile&lt;BR /&gt;&lt;BR /&gt; - then make changes to it with vi&lt;BR /&gt;&lt;BR /&gt; - submit the new file to crontab:&lt;BR /&gt; crontab cronfile&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; Good luck........</description>
      <pubDate>Wed, 25 Sep 2002 10:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812860#M84756</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2002-09-25T10:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812861#M84757</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;While "crontab -e" is a perfectly acceptable way to edit your crontab, I prefer to make changes to a copy of my crontab then implement it.  Here's how:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt;cron.file&lt;BR /&gt;vi cron.darrell&lt;BR /&gt;(make my changes)&lt;BR /&gt;crontab cron.file&lt;BR /&gt;&lt;BR /&gt;I just find this safer.&lt;BR /&gt;&lt;BR /&gt;And as you have discovered, never directly edit /var/spool/cron/crontabs files directly.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 25 Sep 2002 11:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812861#M84757</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-09-25T11:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812862#M84758</link>
      <description>Weird.  I didn't see Khalid's reply just a few minutes ago when I started my reply even though it was posted long before I replied.  Otherwise I'd have simply affirmed his approach.&lt;BR /&gt;&lt;BR /&gt;Anyway, I made a typo in my example.  It should be:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt;cron.file&lt;BR /&gt;vi cron.file&lt;BR /&gt;(make my changes)&lt;BR /&gt;crontab cron.file&lt;BR /&gt;&lt;BR /&gt;No points please.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 25 Sep 2002 12:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812862#M84758</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-09-25T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: crontab edit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812863#M84759</link>
      <description>Petr,&lt;BR /&gt;&lt;BR /&gt;My experience has been that crontab -e works fine.  However, I edited a cron file this way once and the cron file disappeared.  Fortunately, I had a copy in my directory.  Bill Hassell has suggested in his sysadm training to edit a copy with vi and then run the file using crontab "filename".</description>
      <pubDate>Thu, 26 Sep 2002 10:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-edit/m-p/2812863#M84759</guid>
      <dc:creator>Gerald Virden</dc:creator>
      <dc:date>2002-09-26T10:46:32Z</dc:date>
    </item>
  </channel>
</rss>

