<?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/2613085#M36804</link>
    <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;You can create a new crontab file for root. Or restore it from the backup. The filename is /usr/spool/cron/crontabs/root&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Nov 2001 19:07:05 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2001-11-13T19:07:05Z</dc:date>
    <item>
      <title>CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613082#M36801</link>
      <description>Can someone tell me how to restore the root crontab?</description>
      <pubDate>Tue, 13 Nov 2001 18:52:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613082#M36801</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2001-11-13T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613083#M36802</link>
      <description>From a backup, or manually recreate it, then issue (as root)&lt;BR /&gt;&lt;BR /&gt;crontab filename&lt;BR /&gt;&lt;BR /&gt;Of course, restart cron&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 13 Nov 2001 18:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613083#M36802</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-13T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613084#M36803</link>
      <description>From your backup, or another "like" system, restore/copy&lt;BR /&gt;&lt;BR /&gt;/var/spool/cron/ and all of its subdirectories.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 13 Nov 2001 19:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613084#M36803</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-13T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613085#M36804</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;You can create a new crontab file for root. Or restore it from the backup. The filename is /usr/spool/cron/crontabs/root&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2001 19:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613085#M36804</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-13T19:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613086#M36805</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Make a habit of copying the crontab to an other location.&lt;BR /&gt;&lt;BR /&gt;If fact let cron do it for you every night.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Tue, 13 Nov 2001 19:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613086#M36805</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-11-13T19:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613087#M36806</link>
      <description>after you get the file back, you should keep it in roots home directory&lt;BR /&gt;you can update the file with changes and enter&lt;BR /&gt;crontab filename       &lt;BR /&gt;to submit it as a cronjob.&lt;BR /&gt;Eileen</description>
      <pubDate>Tue, 13 Nov 2001 19:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613087#M36806</guid>
      <dc:creator>Eileen Millen</dc:creator>
      <dc:date>2001-11-13T19:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613088#M36807</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are a few ways to avoid this happening where cron files get removed.&lt;BR /&gt;Always keep a copy on the system(whether in 'root's home directory or somewhere else)&lt;BR /&gt;Never use crontab -e to edit the cron file.&lt;BR /&gt;Always use 'crontab -l &amp;gt;/tmp/mycron' , edit the file and submit it 'crontab /tmp/mycron', that way there is always a file on hand.&lt;BR /&gt;We use 'rcs' for any changes to crontab, that way we always have a copy and all changes that have been made.&lt;BR /&gt;&lt;BR /&gt;My 2 cents worth&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Nov 2001 00:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613088#M36807</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-14T00:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613089#M36808</link>
      <description>Restore "/usr/spool/cron/crontabs/root" file from your backup.&lt;BR /&gt;Then use "#crontab root".</description>
      <pubDate>Wed, 14 Nov 2001 02:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613089#M36808</guid>
      <dc:creator>Hell.Leader</dc:creator>
      <dc:date>2001-11-14T02:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: CRON</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613090#M36809</link>
      <description>It has already been *implied* by Harry, Eileen, Michael and Hell.Leader (Did I forget anybody?), but you *must* install the restored crontab with the crontab(1) command!&lt;BR /&gt;&lt;BR /&gt;I.e. you first restore the file from somewhere (probably from the /var/spool/cron/crontabs/root file on your backup media), then *copy* the file somewhere, let's say to /crontab.root and then issue the crontab(1) command:&lt;BR /&gt;&lt;BR /&gt;# crontab /crontab.root&lt;BR /&gt;&lt;BR /&gt;The reason for this is that cron(1M) only reads the 'spool' copy (/var/spool/cron/crontabs/root) when it starts, i.e. normally at system boot. The file is *not* re-read unless crontab(1) tells cron(1M) to do so, so if you do not use crontab(1), cron(1M) may/will never run the jobs listed in the 'spool' copy.</description>
      <pubDate>Wed, 14 Nov 2001 12:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2613090#M36809</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-11-14T12:54:11Z</dc:date>
    </item>
  </channel>
</rss>

