<?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: /var/mail/root file is very big in size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063215#M437166</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you explain your requirement clearly?&lt;BR /&gt;&lt;BR /&gt;For example, if you want to empty the file /tmp/test.txt use the below command.&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /tmp/test.txt &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /tmp/test.txt&lt;BR /&gt;&lt;BR /&gt;Both the above commands will erase the content of the file /tmp/test.txt and make the file size to 0 bytes.&lt;BR /&gt;&lt;BR /&gt;If you want to rename or move to other location, then you may use "cp" or "mv".&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 15 Aug 2007 23:40:57 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2007-08-15T23:40:57Z</dc:date>
    <item>
      <title>/var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063212#M437163</link>
      <description>in my server rp8420 root file has become very big.  How to reduce the file to zero in size?</description>
      <pubDate>Wed, 15 Aug 2007 23:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063212#M437163</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2007-08-15T23:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063213#M437164</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Just issue the following command to empty the file.&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 15 Aug 2007 23:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063213#M437164</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2007-08-15T23:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063214#M437165</link>
      <description>Hi,&lt;BR /&gt;whether the command should be like this?&lt;BR /&gt;&lt;BR /&gt;cat /dev/null/root &amp;gt; root.old</description>
      <pubDate>Wed, 15 Aug 2007 23:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063214#M437165</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2007-08-15T23:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063215#M437166</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you explain your requirement clearly?&lt;BR /&gt;&lt;BR /&gt;For example, if you want to empty the file /tmp/test.txt use the below command.&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /tmp/test.txt &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /tmp/test.txt&lt;BR /&gt;&lt;BR /&gt;Both the above commands will erase the content of the file /tmp/test.txt and make the file size to 0 bytes.&lt;BR /&gt;&lt;BR /&gt;If you want to rename or move to other location, then you may use "cp" or "mv".&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 15 Aug 2007 23:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063215#M437166</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2007-08-15T23:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063216#M437167</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Hi Deepu,&lt;BR /&gt;&lt;BR /&gt;Please keep this document handy.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00904662-7" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00904662-7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this help.&lt;BR /&gt;&lt;BR /&gt;WK</description>
      <pubDate>Wed, 15 Aug 2007 23:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063216#M437167</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2007-08-15T23:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063217#M437168</link>
      <description>You can of course use mailx to read the root mail.  If you don't want the messages you can remove them:&lt;BR /&gt;# mailx&lt;BR /&gt;h $&lt;BR /&gt;d *&lt;BR /&gt;q&lt;BR /&gt;&lt;BR /&gt;If you don't want to change anything, use "x" to exit.&lt;BR /&gt;h $: to go to the end, use a message number.&lt;BR /&gt;z: to go to next page.&lt;BR /&gt;d *: to delete all&lt;BR /&gt;d n - m: to delete a range&lt;BR /&gt;&lt;BR /&gt;Using from(1) would give who sent them.</description>
      <pubDate>Thu, 16 Aug 2007 00:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063217#M437168</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-16T00:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063218#M437169</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to keep the /var/mail/root file into another file and make it emptied.  I don't want to lose the contents of the file at least for now. At the same time I want to make it zero in size.</description>
      <pubDate>Thu, 16 Aug 2007 00:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063218#M437169</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2007-08-16T00:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063219#M437170</link>
      <description>&amp;gt;I want to keep the /var/mail/root file into another file and make it emptied.&lt;BR /&gt;&lt;BR /&gt;Then as Ganesan suggested, you use cp:&lt;BR /&gt;# cp /var/mail/root /var/mail/root.old&lt;BR /&gt;# &amp;gt; /var/mail/root&lt;BR /&gt;&lt;BR /&gt;You can use "mailx -u root.old" to read.&lt;BR /&gt;&lt;BR /&gt;Or you can cat the file onto the end of a Netscape mail folder and then you can sort out all of the "junk" mail.</description>
      <pubDate>Thu, 16 Aug 2007 00:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063219#M437170</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-16T00:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063220#M437171</link>
      <description>Hi deepu ... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;check for the reason , why root's mail-inbox is getting very big in size. we were facing the same probs in one server. and we were able to found error in on shell script which is scheduld in cron. this bad entry was making tha mail-inbox in very big size. &lt;BR /&gt;&lt;BR /&gt;So you can look in to this area also &lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Prasanrth</description>
      <pubDate>Thu, 16 Aug 2007 00:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063220#M437171</guid>
      <dc:creator>Prasanth Vattoly</dc:creator>
      <dc:date>2007-08-16T00:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063221#M437172</link>
      <description>Hi Deepu,&lt;BR /&gt;Copy your original file then make it blank&lt;BR /&gt;At first&lt;BR /&gt;cp /var/mail/root /var/mail/root.backup&lt;BR /&gt;then&lt;BR /&gt;cat /dev/null &amp;gt; /var/mail/root&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;&lt;BR /&gt;A. Aashique</description>
      <pubDate>Fri, 17 Aug 2007 14:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063221#M437172</guid>
      <dc:creator>Aashique</dc:creator>
      <dc:date>2007-08-17T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063222#M437173</link>
      <description>Hi,&lt;BR /&gt;I did exactly like that.  First I copied to a new file and then made it null.&lt;BR /&gt;&lt;BR /&gt;Thanks  to all.</description>
      <pubDate>Sat, 18 Aug 2007 00:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063222#M437173</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2007-08-18T00:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063223#M437174</link>
      <description>Hi Deepu,&lt;BR /&gt;&lt;BR /&gt;Please assign point to close the case.&lt;BR /&gt;have a nice weekend&lt;BR /&gt;&lt;BR /&gt;WC</description>
      <pubDate>Sat, 18 Aug 2007 00:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063223#M437174</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2007-08-18T00:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var/mail/root file is very big in size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063224#M437175</link>
      <description>Thanks to all specially to Ganeshan and Ashique.</description>
      <pubDate>Sat, 18 Aug 2007 00:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-mail-root-file-is-very-big-in-size/m-p/5063224#M437175</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2007-08-18T00:03:57Z</dc:date>
    </item>
  </channel>
</rss>

