<?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: Stop cron loggnig in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298592#M183441</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A way could be redirect the standar an error ouputs to a /dev/null for each task in the cronfile, i.e:&lt;BR /&gt;&lt;BR /&gt;00 02 * * * /any_path/your_task &amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
    <pubDate>Tue, 08 Jun 2004 02:46:29 GMT</pubDate>
    <dc:creator>Jose Mosquera</dc:creator>
    <dc:date>2004-06-08T02:46:29Z</dc:date>
    <item>
      <title>Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298580#M183429</link>
      <description>Hello !&lt;BR /&gt;&lt;BR /&gt;How can I stop cron logging in HP-UX 11.00 ?&lt;BR /&gt;&lt;BR /&gt;In Solaris systems I can modify /etc/default/cron from CRONLOG=YES to CRONLOG=NO.&lt;BR /&gt;&lt;BR /&gt;Thx!&lt;BR /&gt;KRI</description>
      <pubDate>Tue, 08 Jun 2004 01:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298580#M183429</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2004-06-08T01:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298581#M183430</link>
      <description>To stop cron:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;&lt;BR /&gt;To start Cron jobs:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Anshu</description>
      <pubDate>Tue, 08 Jun 2004 01:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298581#M183430</guid>
      <dc:creator>Anupam Anshu_1</dc:creator>
      <dc:date>2004-06-08T01:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298582#M183431</link>
      <description>:-)&lt;BR /&gt;&lt;BR /&gt;I can't stop cron jobs !&lt;BR /&gt;I can stop cron logging to /var/adm/cron/log file.&lt;BR /&gt;&lt;BR /&gt;KRI</description>
      <pubDate>Tue, 08 Jun 2004 01:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298582#M183431</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2004-06-08T01:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298583#M183432</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if i understand u correctly, u want the jobs to continue running but not to log at all? i am guessing, maybe because u have a lot of jobs running, say, every minute?&lt;BR /&gt;&lt;BR /&gt;please note that /var/adm/cron/log is meant as a audit/accounting file to track that jobs are "fire" and stopping it from logging may not be desirable to the auditor. morever, i believe /var should always be quite large.&lt;BR /&gt;&lt;BR /&gt;for now, i know the only way to not log is if you have no schedule jobs.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Tue, 08 Jun 2004 01:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298583#M183432</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2004-06-08T01:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298584#M183433</link>
      <description>In one of my machines, I have to run a SQL job every half hour. I have the same problem. To resolve this, I schedule another cron job to clean the /var/adm/cron/log everyday:&lt;BR /&gt;45 0 * * * &amp;gt; /var/adm/cron/log</description>
      <pubDate>Tue, 08 Jun 2004 02:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298584#M183433</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2004-06-08T02:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298585#M183434</link>
      <description>Joseph,&lt;BR /&gt;thx for your replay !&lt;BR /&gt;&lt;BR /&gt;You correctly understand me. I want to run cron jobs, but not to log at all. Yes, i have a lot of jobs, and log file /var/adm/cron/log grows very fast.&lt;BR /&gt;&lt;BR /&gt;I want to stop cron from logging.&lt;BR /&gt;&lt;BR /&gt;In Solaris it is possible.&lt;BR /&gt;&lt;BR /&gt;KRI</description>
      <pubDate>Tue, 08 Jun 2004 02:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298585#M183434</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2004-06-08T02:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298586#M183435</link>
      <description>A solution might be to create an extra cron job that cleans or rotates the log file. Or replace the file with a symbolic link to /dev/null.&lt;BR /&gt;&lt;BR /&gt;I would go for the first option. This way you can still find jobs that fail through the logfile(s), but you're filesystem will not fill up too fast with logging info.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;    Elmar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2004 02:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298586#M183435</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-08T02:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298587#M183436</link>
      <description>There seems to be no option in /etc/rc.config.d/cron to disable the logging behavior of cron except start/stop of cron.&lt;BR /&gt;&lt;BR /&gt;The disabling of log can be achieved as suggested in previous post.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Tue, 08 Jun 2004 02:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298587#M183436</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-06-08T02:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298588#M183437</link>
      <description>As such its not possible on HP-UX. However, you can have a job which nullifies the file regularly.&lt;BR /&gt;&lt;BR /&gt;# echo &amp;gt; /var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Anshu&lt;BR /&gt;&lt;BR /&gt;PS: I understand this is not exactly what you are looking for, rather its just a work around.</description>
      <pubDate>Tue, 08 Jun 2004 02:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298588#M183437</guid>
      <dc:creator>Anupam Anshu_1</dc:creator>
      <dc:date>2004-06-08T02:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298589#M183438</link>
      <description>Kri,&lt;BR /&gt;  We have the same problem.But we choose to wrote another cronjob to wipe out the cron log every day at 00:00 am.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Tue, 08 Jun 2004 02:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298589#M183438</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2004-06-08T02:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298590#M183439</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can have one more cron job to clear /var/adm/cron/log, may be every minute depending on the frequency of log file generation.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;RDL.</description>
      <pubDate>Tue, 08 Jun 2004 02:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298590#M183439</guid>
      <dc:creator>Rajesh D L</dc:creator>
      <dc:date>2004-06-08T02:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298591#M183440</link>
      <description>Thx to all !&lt;BR /&gt;&lt;BR /&gt;Good idea for me is to replace the log file with a symbolic link to /dev/null&lt;BR /&gt;&lt;BR /&gt;Thank you Elmar !&lt;BR /&gt;&lt;BR /&gt;Best regards!&lt;BR /&gt;KRI</description>
      <pubDate>Tue, 08 Jun 2004 02:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298591#M183440</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2004-06-08T02:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298592#M183441</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A way could be redirect the standar an error ouputs to a /dev/null for each task in the cronfile, i.e:&lt;BR /&gt;&lt;BR /&gt;00 02 * * * /any_path/your_task &amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 08 Jun 2004 02:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298592#M183441</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-06-08T02:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298593#M183442</link>
      <description>Jose !&lt;BR /&gt;&lt;BR /&gt;It is not good way.&lt;BR /&gt;Cron log contains:&lt;BR /&gt;&amp;gt;  CMD: /my_path/to_run.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;  root 2951 c Tue May 18 17:40:00 METDST 2004&lt;BR /&gt;&lt;BR /&gt;KRI&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2004 02:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298593#M183442</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2004-06-08T02:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298594#M183443</link>
      <description>hi,&lt;BR /&gt; &lt;BR /&gt;linking /var/adm/cron/log to /dev/null is an option for disabling logging completely  (I wonder however what happens if cron is stopped and restarted : logfile is renamed and a new one is created).&lt;BR /&gt;But this leaves you with no possibility for troubleshooting nor auditing!  It's no use to turn logging on AFTER you're in trouble, you have to do this BEFORE.  Remember the cron log logs also batch and at-jobs, next to cron jobs.&lt;BR /&gt;  &lt;BR /&gt;Have a look at log rotation tools like "newsyslog" which allow you to control the size of log files and keep "older" logs in compressed format.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 08 Jun 2004 02:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298594#M183443</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2004-06-08T02:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298595#M183444</link>
      <description>hi, &lt;BR /&gt; &lt;BR /&gt;as said I was curious how "/sbin/init.d/cron start" would handle a link to /dev/null...&lt;BR /&gt;Things seem to be going well, /sbin/init.d/cron checks if &amp;lt;&lt;FILE&gt;&amp;gt; log exists and then moves it to OLDlog, as a symbolic link is not a plain file, no move is done and the link remains.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Thierry.&lt;/FILE&gt;</description>
      <pubDate>Tue, 08 Jun 2004 03:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298595#M183444</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2004-06-08T03:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298596#M183445</link>
      <description>Kri,&lt;BR /&gt;&lt;BR /&gt;I'm not sure about your answer but my hint works fine in my box using the *exact* sintax posted.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 08 Jun 2004 04:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298596#M183445</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-06-08T04:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298597#M183446</link>
      <description>Thierry,&lt;BR /&gt;&lt;BR /&gt;The problem with your solution is that it doesn't solve the problem. It will only result in no mails to the user, but in the cron logging there is no logging of the output of commands but logging from cron itself, reporting what it starts, at which time and when it stops with what exit code. So three lines per command that's being started.&lt;BR /&gt;&lt;BR /&gt;Hope this explains it.</description>
      <pubDate>Wed, 09 Jun 2004 00:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298597#M183446</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-09T00:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298598#M183447</link>
      <description>mixing up names?&lt;BR /&gt;&lt;GRIN&gt;&lt;/GRIN&gt;</description>
      <pubDate>Wed, 09 Jun 2004 01:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298598#M183447</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2004-06-09T01:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stop cron loggnig</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298599#M183448</link>
      <description>Oops... Sorry, Thierry... Meant Jose, of course.</description>
      <pubDate>Wed, 09 Jun 2004 04:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stop-cron-loggnig/m-p/3298599#M183448</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-09T04:28:02Z</dc:date>
    </item>
  </channel>
</rss>

