<?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 Logrotate Problem in cron daemon in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173361#M458489</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;/opt/logrotate/bin/logrotate logrotate.conf executes successfully and fulfill my target, which compressed the old logs.&lt;BR /&gt;but when I try to execute same command through cronjob it executes but not compressed only take the backup of old logs.&lt;BR /&gt;Then I execute a script through cron, where command and profile execution done.&lt;BR /&gt;&lt;BR /&gt;Any one faced same type of problem before.</description>
    <pubDate>Tue, 05 May 2009 12:04:51 GMT</pubDate>
    <dc:creator>Muhib Tanim</dc:creator>
    <dc:date>2009-05-05T12:04:51Z</dc:date>
    <item>
      <title>Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173361#M458489</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;/opt/logrotate/bin/logrotate logrotate.conf executes successfully and fulfill my target, which compressed the old logs.&lt;BR /&gt;but when I try to execute same command through cronjob it executes but not compressed only take the backup of old logs.&lt;BR /&gt;Then I execute a script through cron, where command and profile execution done.&lt;BR /&gt;&lt;BR /&gt;Any one faced same type of problem before.</description>
      <pubDate>Tue, 05 May 2009 12:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173361#M458489</guid>
      <dc:creator>Muhib Tanim</dc:creator>
      <dc:date>2009-05-05T12:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173362#M458490</link>
      <description>Take a look at logrotate to see if the portion that is supposed to compress the old logs identifies the full path name of whatever command it is using.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 05 May 2009 12:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173362#M458490</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-05-05T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173363#M458491</link>
      <description>most likely, this is related to a pathing problem when running from cron.  &lt;BR /&gt;&lt;BR /&gt;for example, when run from the command-line as noted:&lt;BR /&gt;&lt;BR /&gt;/opt/logrotate/bin/logrotate logrotate.conf&lt;BR /&gt;&lt;BR /&gt;what is your current directory, and is logrotate.conf in it?  &lt;BR /&gt;&lt;BR /&gt;My first step would be to put the full path to logrotate.conf in the cron job and see what happens.  &lt;BR /&gt;</description>
      <pubDate>Tue, 05 May 2009 12:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173363#M458491</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-05-05T12:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173364#M458492</link>
      <description>We use a wrapper script that we run from cron that sets the PATH so gzip can be found by logrotate.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;PATH=/bin:/usr/bin:/usr/contrib/bin&lt;BR /&gt;&lt;BR /&gt;/opt/logrotate/bin/logrotate /etc/logrotate.conf&lt;BR /&gt;</description>
      <pubDate>Tue, 05 May 2009 13:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173364#M458492</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2009-05-05T13:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173365#M458493</link>
      <description>Hi,&lt;BR /&gt;create a new script to add in crontab under teh user you run successfully online and add&lt;BR /&gt;&lt;BR /&gt;. .profile&lt;BR /&gt;opt/logrotate/bin/logrotate logrotate.conf &lt;BR /&gt;&lt;BR /&gt;to be sure that all neeede paths will be loaded.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 06 May 2009 06:23:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173365#M458493</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2009-05-06T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173366#M458494</link>
      <description>Thanks Jeff Traigle&lt;BR /&gt;&lt;BR /&gt;PATH=/bin:/usr/bin:/usr/contrib/bin&lt;BR /&gt;&lt;BR /&gt;solved the problem</description>
      <pubDate>Thu, 07 May 2009 07:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173366#M458494</guid>
      <dc:creator>Muhib Tanim</dc:creator>
      <dc:date>2009-05-07T07:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate Problem in cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173367#M458495</link>
      <description>solved</description>
      <pubDate>Thu, 07 May 2009 07:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate-problem-in-cron-daemon/m-p/5173367#M458495</guid>
      <dc:creator>Muhib Tanim</dc:creator>
      <dc:date>2009-05-07T07:17:59Z</dc:date>
    </item>
  </channel>
</rss>

