<?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 issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676874#M382298</link>
    <description>newunix,&lt;BR /&gt;&lt;BR /&gt;As a new UNIX user/administrator you need to quickly learn that "man" is your best friend...&lt;BR /&gt;&lt;BR /&gt;man crontab&lt;BR /&gt;&lt;BR /&gt;... will give you the the answer you need.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 22 Aug 2010 23:55:04 GMT</pubDate>
    <dc:creator>Jim Walls</dc:creator>
    <dc:date>2010-08-22T23:55:04Z</dc:date>
    <item>
      <title>cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676861#M382285</link>
      <description>after setting cron as &lt;BR /&gt;cat samplecron&lt;BR /&gt;&lt;BR /&gt;0,10,20,30,40,50 * * * * /usr/bin/bdf &amp;gt;&amp;gt; /tmp/bdf.log&lt;BR /&gt;&lt;BR /&gt;i can get the output but my problem is &lt;BR /&gt;&lt;BR /&gt;if i schedule new cron job and i execute crontab filename ,, previous running cron job get removed.&lt;BR /&gt;&lt;BR /&gt;how can i preserve the previous running cron jobs.&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Aug 2010 04:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676861#M382285</guid>
      <dc:creator>newunix</dc:creator>
      <dc:date>2010-08-19T04:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676862#M382286</link>
      <description>You can do that by adding the entries together. With the crontab -l command you can view your current jobs.&lt;BR /&gt;&lt;BR /&gt;Easiest way:&lt;BR /&gt;$ crontab -l &amp;gt;oldcron.txt&lt;BR /&gt;$ cat oldcron.txt newcron.txt | crontab -&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Aug 2010 05:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676862#M382286</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2010-08-19T05:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676863#M382287</link>
      <description>&amp;gt;how can I preserve the previous running cron jobs.&lt;BR /&gt;&lt;BR /&gt;Your crontab entry must contain ALL of your jobs.  If you want to add more, you can use "crontab -e".</description>
      <pubDate>Thu, 19 Aug 2010 05:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676863#M382287</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-19T05:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676864#M382288</link>
      <description>Hi,&lt;BR /&gt;How did you enter new cron jab ?&lt;BR /&gt;crontab -e ??&lt;BR /&gt;&lt;BR /&gt;You mean after save the crontab, you cannot see your previous job anymore inside cron with the command:&lt;BR /&gt;# crontab -l ??</description>
      <pubDate>Thu, 19 Aug 2010 05:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676864#M382288</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-08-19T05:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676865#M382289</link>
      <description>hi hakki&lt;BR /&gt;&lt;BR /&gt;when i created first cron job i used vi samplecron&lt;BR /&gt;&lt;BR /&gt;then i executed crontab firstcronjob&lt;BR /&gt;&lt;BR /&gt;for adding second cron job for the same user again i used vi editor and i executed &lt;BR /&gt;crontab secondcronjob&lt;BR /&gt;&lt;BR /&gt;after that i listed jobs with crontab -l ,, firstcronjob was missing</description>
      <pubDate>Thu, 19 Aug 2010 05:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676865#M382289</guid>
      <dc:creator>newunix</dc:creator>
      <dc:date>2010-08-19T05:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676866#M382290</link>
      <description>&amp;gt;and I executed crontab secondcronjob&lt;BR /&gt;&lt;BR /&gt;That's what Hakki suspected.  You can't do that.  You must put ALL of your user's crontab entries in one "logical" file.  The one you pass to crontab(1).</description>
      <pubDate>Thu, 19 Aug 2010 05:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676866#M382290</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-19T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676867#M382291</link>
      <description>&lt;!--!*#--&gt;&amp;gt; cron issue &lt;BR /&gt;&lt;BR /&gt;Is that anything like a _problem_?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] and i executed&lt;BR /&gt;&amp;gt; crontab secondcronjob&lt;BR /&gt;&lt;BR /&gt;      man crontab&lt;BR /&gt;&lt;BR /&gt;Not knowing your HP-UX version, I can't quote&lt;BR /&gt;the exact text, but I'd guess that it says&lt;BR /&gt;something like:&lt;BR /&gt;&lt;BR /&gt;      Create or replace your crontab file by&lt;BR /&gt;      copying the specified file, [...]&lt;BR /&gt;&lt;BR /&gt;Nothing there about "appending the specified&lt;BR /&gt;file".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; crontab -e ??&lt;BR /&gt;&lt;BR /&gt;You might consider using that option.</description>
      <pubDate>Thu, 19 Aug 2010 05:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676867#M382291</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-19T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676868#M382292</link>
      <description>so if i want to add another cron job for the same user ,,,&lt;BR /&gt;&lt;BR /&gt;i have to use crontab -e and add the second job.&lt;BR /&gt;&lt;BR /&gt;after that do i need to execute &lt;BR /&gt;crontab secondjob</description>
      <pubDate>Thu, 19 Aug 2010 05:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676868#M382292</guid>
      <dc:creator>newunix</dc:creator>
      <dc:date>2010-08-19T05:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676869#M382293</link>
      <description>can i have an example for particular user having one job already and to add another cron job.</description>
      <pubDate>Thu, 19 Aug 2010 05:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676869#M382293</guid>
      <dc:creator>newunix</dc:creator>
      <dc:date>2010-08-19T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676870#M382294</link>
      <description>&amp;gt;I have to use crontab -e and add the second job.  after that do i need to execute: crontab secondjob&lt;BR /&gt;&lt;BR /&gt;No, you keep using "crontab -e".  Or you can use "crontab -l" and put that in a file and resubmit that file with your changes.&lt;BR /&gt; &lt;BR /&gt;&amp;gt;can I have an example for particular user having one job already and to add another cron job.&lt;BR /&gt;&lt;BR /&gt;Use "crontab -e" to edit your existing crontab entry.  Then add as many as you want.&lt;BR /&gt;&lt;BR /&gt;Note: One problem with "crontab -e" is that you don't have a backup if your disks crash and it isn't in a source management system.&lt;BR /&gt;&lt;BR /&gt;So you could just start with a file and just add to it, then use "crontab file" each time.</description>
      <pubDate>Thu, 19 Aug 2010 06:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676870#M382294</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-19T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676871#M382295</link>
      <description>newunix, what you want exactly what I described in the first reply...&lt;BR /&gt;&lt;BR /&gt;If you want to do it for another user, you have to add the '-u &lt;USER&gt;' option.&lt;BR /&gt;&lt;BR /&gt;So:&lt;BR /&gt;&lt;BR /&gt;$ crontab -l -u dummyuser &amp;gt;oldjobs&lt;BR /&gt;$ cat oldjobs newjobs | crontab -u dummyuser&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Thu, 19 Aug 2010 08:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676871#M382295</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2010-08-19T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676872#M382296</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# cd /var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;Save old cron.&lt;BR /&gt;&lt;BR /&gt;# crontab -l &amp;gt; crontab.old&lt;BR /&gt;&lt;BR /&gt;Modify crontab file:&lt;BR /&gt;&lt;BR /&gt;# crontab -e&lt;BR /&gt;&lt;BR /&gt;List crontab file:&lt;BR /&gt;&lt;BR /&gt;# crontab -l&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Thu, 19 Aug 2010 09:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676872#M382296</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-08-19T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676873#M382297</link>
      <description>&amp;gt;rariasn: # cd /var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;There is no need to go there unless you want to back up these files.&lt;BR /&gt;Also don't edit these files directly.</description>
      <pubDate>Fri, 20 Aug 2010 15:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676873#M382297</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-20T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676874#M382298</link>
      <description>newunix,&lt;BR /&gt;&lt;BR /&gt;As a new UNIX user/administrator you need to quickly learn that "man" is your best friend...&lt;BR /&gt;&lt;BR /&gt;man crontab&lt;BR /&gt;&lt;BR /&gt;... will give you the the answer you need.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Aug 2010 23:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676874#M382298</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2010-08-22T23:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676875#M382299</link>
      <description>I know it's a old thread. &lt;BR /&gt;&lt;BR /&gt;hi newunix,&lt;BR /&gt;&lt;BR /&gt;If you are creating cron like vi xyz.cron, after adding all jobs to xyz.cron, you have to use below command to activate above crontab.&lt;BR /&gt;crontab xyz.cron&lt;BR /&gt;&lt;BR /&gt;If you are adding more cron jobs to xyz.cron  edit in vi and then again use crontab xyz.cron to activate. &lt;BR /&gt;&lt;BR /&gt;Thx,</description>
      <pubDate>Tue, 24 Aug 2010 17:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676875#M382299</guid>
      <dc:creator>djoshi</dc:creator>
      <dc:date>2010-08-24T17:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: cron issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676876#M382300</link>
      <description>hi djoshi&lt;BR /&gt;!its better to use crontab -e instead of vi&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mc</description>
      <pubDate>Wed, 25 Aug 2010 02:25:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-issue/m-p/4676876#M382300</guid>
      <dc:creator>madhuchakkaravarthy</dc:creator>
      <dc:date>2010-08-25T02:25:47Z</dc:date>
    </item>
  </channel>
</rss>

