<?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: Migrate cron tab from TRU64 to HP UX 11.23 i in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115926#M313963</link>
    <description>I think folder copy is not a good idea.&lt;BR /&gt;Just copy the crontab files(root,oracle etc etc from /var/spool/cron/ directory) because crontab format is same and let HP-UX do its job.Its better to restart cron after copying.&lt;BR /&gt;Hope this help!!!&lt;BR /&gt;BR,&lt;BR /&gt;Kapil&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Dec 2007 04:55:32 GMT</pubDate>
    <dc:creator>Kapil Jha</dc:creator>
    <dc:date>2007-12-13T04:55:32Z</dc:date>
    <item>
      <title>Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115924#M313961</link>
      <description>Dear HP-UX Gurus,&lt;BR /&gt;We wanted to migrate our cron jobs from TRU64 to HPUX 11.23i. Can I copy the crontabs folder to the new server? appreciate you could advice us the best way to migrate these cron jobs.   &lt;BR /&gt;&lt;BR /&gt;# /var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;Hope to hear from you</description>
      <pubDate>Thu, 13 Dec 2007 04:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115924#M313961</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2007-12-13T04:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115925#M313962</link>
      <description>The best way to to this is a crontab -l for each user on the source machine.&lt;BR /&gt;&lt;BR /&gt;crontab -u user1 -l &amp;gt; /tmp/user1.crontab&lt;BR /&gt;crontab -u user2 -l &amp;gt; /tmp/user2.crontab&lt;BR /&gt;&lt;BR /&gt;Then using tar, rcp, ssh, ftp, ... tranfer the /tmp/*.crontab files from the source machine to the target machine.&lt;BR /&gt;&lt;BR /&gt;Finally, read in the crontab files for each user.&lt;BR /&gt;&lt;BR /&gt;crontab -u user1 &amp;lt; /tmp/user1.crontab&lt;BR /&gt;crontab -u user2 &amp;lt; /tmp/user2.crontab&lt;BR /&gt;&lt;BR /&gt;Simply copying the cron directory tree will not suffice because you have to force the cron daemon to actually read those files. The "crontab -u user1 &amp;lt; /tmp/user1.crontab" command actually does two things: 1) It reads the input into the cron tables 2) It sends a SIGHUP to the cron daemon to instruct the daemon to reread the configuration files.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2007 04:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115925#M313962</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-12-13T04:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115926#M313963</link>
      <description>I think folder copy is not a good idea.&lt;BR /&gt;Just copy the crontab files(root,oracle etc etc from /var/spool/cron/ directory) because crontab format is same and let HP-UX do its job.Its better to restart cron after copying.&lt;BR /&gt;Hope this help!!!&lt;BR /&gt;BR,&lt;BR /&gt;Kapil&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2007 04:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115926#M313963</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2007-12-13T04:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115927#M313964</link>
      <description>&amp;gt;Clay: crontab -u user1 &amp;lt; /tmp/user1.crontab&lt;BR /&gt;&lt;BR /&gt;I'm not sure about -u for Tru64 but the HP-UX syntax is: su user1 -c "crontab &amp;lt; /tmp/user1.crontab"&lt;BR /&gt;Only crontab -e -l -r support an optional user name:&lt;BR /&gt;crontab -e [username]&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It sends a SIGHUP to the cron daemon to instruct the daemon to reread the configuration files.&lt;BR /&gt;&lt;BR /&gt;Would copying the folders and then using one crontab -e work??&lt;BR /&gt;&lt;BR /&gt;Or just skip that and "kill -HUP cron-PID" be the easiest?</description>
      <pubDate>Thu, 13 Dec 2007 05:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115927#M313964</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-12-13T05:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115928#M313965</link>
      <description>&amp;gt;&amp;gt;&amp;gt;Would copying the folders and then using one crontab -e work??&lt;BR /&gt;&lt;BR /&gt;Dennis I think it wont work because there are a lot of files&lt;BR /&gt;.proto..cronuucp&lt;BR /&gt;cronuucp&lt;BR /&gt;.proto..adm&lt;BR /&gt;.proto..sys&lt;BR /&gt;adm&lt;BR /&gt;sys&lt;BR /&gt;.new..cronuucp&lt;BR /&gt;.new..adm&lt;BR /&gt;.new..sys&lt;BR /&gt;.proto..root&lt;BR /&gt;root.rcm.bck&lt;BR /&gt;uucp -&amp;gt; ./cronuucp&lt;BR /&gt;.mrg..root&lt;BR /&gt;.new..root&lt;BR /&gt;&lt;BR /&gt;which wont work with HP-UX !!!&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;Or just skip that and "kill -HUP cron-PID" be the easiest?&lt;BR /&gt;&lt;BR /&gt;This would be better because it would be similar to defining new crontabs for various users and forcing cron to reread the files.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
      <pubDate>Thu, 13 Dec 2007 05:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115928#M313965</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2007-12-13T05:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115929#M313966</link>
      <description>Dear HP UX Gurus,&lt;BR /&gt;Sorry for the late reply. I was away during the weekend&lt;BR /&gt;How to restart the cron after copying in the new server? is it something like the cron service? &lt;BR /&gt;If I issue the copy by issuing the crontab -l command, will it cause the cron jobs to be temporarily stop or anything in the old server?&lt;BR /&gt;Hope to hear from you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Dec 2007 02:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115929#M313966</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2007-12-17T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115930#M313967</link>
      <description>No "crontab -l &amp;gt; mycronfile" will not cause the cron daemon to stop nor will "crontab &amp;lt; mycronfile" cause the daemon to stop. You can stop the cron daemon by "/sbin/init.d/cron stop" and restart it via "/sbin/init.d/cron start" BUT that is really the cowboy way. The most universal solution is to use the "crontab -l &amp;gt; mycronfile" command to extract the cron tables for each user and the "crontab &amp;lt; mycronfile" command to load the cron table for each user. The "crontab &amp;lt; mycronfile" command also implicitly sends a SIGHUP to the cron daemon to initiate a reread of the cron deamon's files so that no stop/restart is needed.</description>
      <pubDate>Mon, 17 Dec 2007 03:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115930#M313967</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-12-17T03:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115931#M313968</link>
      <description>Dear HPUX Gurus,&lt;BR /&gt;once i migrated the cron jobs, how can i ensure it not activated yet as we need to finalised the cron jobs entry. once we confirmed, how can we start the cron jobs? is it by stop and start the cron job services. &lt;BR /&gt;looking forward for your awaiting reply.&lt;BR /&gt;promise of good points. tq</description>
      <pubDate>Tue, 08 Jan 2008 07:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115931#M313968</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-01-08T07:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate cron tab from TRU64 to HP UX 11.23 i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115932#M313969</link>
      <description>&amp;gt;once i migrated the cron jobs, how can i ensure it not activated yet as we need to finalised the cron jobs entry.&lt;BR /&gt;&lt;BR /&gt;What do you mean by migrated?  If you use the crontab command, the jobs will be executed.&lt;BR /&gt;If you meant you just copied the files into /var/spool/cron/crontabs, it won't be executed until you use crontab -e or the system is rebooted or cron restarted.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;how can we start the cron jobs?&lt;BR /&gt;&lt;BR /&gt;You will need to do "crontab file" for each user.  Or root can do what I mentioned above:&lt;BR /&gt;su user1 -c "crontab /tmp/user1.crontab"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: the "crontab &amp;lt; mycronfile" command also implicitly sends a SIGHUP to the cron &lt;BR /&gt;&lt;BR /&gt;Actually it is a message in the FIFO /var/adm/cron/FIFO.</description>
      <pubDate>Tue, 08 Jan 2008 07:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-cron-tab-from-tru64-to-hp-ux-11-23-i/m-p/4115932#M313969</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-01-08T07:58:24Z</dc:date>
    </item>
  </channel>
</rss>

