<?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: Clearing mail.log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033316#M301757</link>
    <description>after you chicken lip "&amp;gt;" then send a HUP signal to sendmail.&lt;BR /&gt;&lt;BR /&gt;# kill -HUP &lt;SENDMAIL_PID&gt;&lt;BR /&gt;&lt;BR /&gt;My suggestion would be to copy mail.log to another location. archive it and then chicken lip the file and send a HUP.&lt;/SENDMAIL_PID&gt;</description>
    <pubDate>Fri, 06 Jul 2007 06:49:31 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2007-07-06T06:49:31Z</dc:date>
    <item>
      <title>Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033315#M301756</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;My system's /var/adm/syslog/mail.log file was large and I just cleared it with : &amp;gt;mail.log. Is this the correct way to clear system log files? do I need to stop the mail daemon before clearing the log file ... I noticed the file is not updated since i cleared, it's still empty. I wonder if these files can be cleared while the process are still running. Any advice.........</description>
      <pubDate>Fri, 06 Jul 2007 06:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033315#M301756</guid>
      <dc:creator>vignes_1</dc:creator>
      <dc:date>2007-07-06T06:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033316#M301757</link>
      <description>after you chicken lip "&amp;gt;" then send a HUP signal to sendmail.&lt;BR /&gt;&lt;BR /&gt;# kill -HUP &lt;SENDMAIL_PID&gt;&lt;BR /&gt;&lt;BR /&gt;My suggestion would be to copy mail.log to another location. archive it and then chicken lip the file and send a HUP.&lt;/SENDMAIL_PID&gt;</description>
      <pubDate>Fri, 06 Jul 2007 06:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033316#M301757</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-06T06:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033317#M301758</link>
      <description>I usually copy this to another file, then vi the file and remove 90% of it.</description>
      <pubDate>Fri, 06 Jul 2007 11:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033317#M301758</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2007-07-06T11:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033318#M301759</link>
      <description>Hi Vignes,&lt;BR /&gt;&lt;BR /&gt;if you decide to clear mail.log remember that this file is locked by syslogd and not by sendmail.&lt;BR /&gt;&lt;BR /&gt;If you check /etc/syslog.conf file you see that mail.log is managed by syslogd.&lt;BR /&gt;&lt;BR /&gt;This test in my machine:&lt;BR /&gt;&lt;BR /&gt;fuser /var/adm/syslog/mail.log&lt;BR /&gt;/var/adm/syslog/mail.log: 584o&lt;BR /&gt;&lt;BR /&gt;ps -ef |grep 584&lt;BR /&gt;root 584 1 0 Dec 5 ? 0:10 /usr/sbin/syslogd -D&lt;BR /&gt;&lt;BR /&gt;This means that /var/adm/syslog/mail.log is in open state by syslogd daemon.&lt;BR /&gt;&lt;BR /&gt;Following this step to clear mail.log:&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;mv mail.log mail.log.old&lt;BR /&gt;touch mail.log&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;If you want to do every time mail.log grow bigger then &lt;SIZE&gt; bytes you can use logrotate utility.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fat&lt;/SIZE&gt;</description>
      <pubDate>Sat, 07 Jul 2007 10:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033318#M301759</guid>
      <dc:creator>Fat Scrape</dc:creator>
      <dc:date>2007-07-07T10:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033319#M301760</link>
      <description>Nice catch Fat Scrape. I wasn't thinking about syslogd, but you can always HUP that too.&lt;BR /&gt;&lt;BR /&gt;# kill -HUP &lt;SYSLOGD_PID&gt;&lt;/SYSLOGD_PID&gt;</description>
      <pubDate>Sun, 08 Jul 2007 22:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033319#M301760</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-08T22:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033320#M301761</link>
      <description>Try SAM -&amp;gt; routine tasks -&amp;gt; system log files. Trim the mail.log file to the recommended size. This will empty the file and create a file called mail.logSAMTRM.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Mon, 09 Jul 2007 02:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033320#M301761</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2007-07-09T02:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033321#M301762</link>
      <description>apart from what is asked for...you can use  logroate. This trims and manages the logfiles on system. &lt;BR /&gt;Search on the forum. May be a fit in your requirement.</description>
      <pubDate>Mon, 09 Jul 2007 05:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033321#M301762</guid>
      <dc:creator>Anshumali</dc:creator>
      <dc:date>2007-07-09T05:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing mail.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033322#M301763</link>
      <description>tail -500 mail.log &amp;gt;mail.wrk&lt;BR /&gt;cat mail.wrk &amp;gt;mail.log&lt;BR /&gt;rm mail.wrk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;used to work on 11.00 l-class servers</description>
      <pubDate>Mon, 09 Jul 2007 05:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-mail-log/m-p/4033322#M301763</guid>
      <dc:creator>SSCHAER</dc:creator>
      <dc:date>2007-07-09T05:37:51Z</dc:date>
    </item>
  </channel>
</rss>

