<?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: file limit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579824#M229657</link>
    <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;I tried saju's script , but it seems too complicate for me , could suggest more simpler script ? thx</description>
    <pubDate>Mon, 11 Jul 2005 19:59:15 GMT</pubDate>
    <dc:creator>hangyu</dc:creator>
    <dc:date>2005-07-11T19:59:15Z</dc:date>
    <item>
      <title>file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579818#M229651</link>
      <description>In my server , there are some files under the directory /tmp , these files will growth very fast ,  I want to limit the size to grow to too large -- if the size is larger than a certain size ( eg. over 10M ) , then send the alert mail to me , could suggest what can I do ? thx</description>
      <pubDate>Mon, 11 Jul 2005 18:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579818#M229651</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-07-11T18:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579819#M229652</link>
      <description>you might just run something like this from the cron but to start with, write a small program to get started:&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;du -sk /tmp/* | sort -rn | head |mailx -s "top list" myeamil@address.com&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;the next phase you can use more tools like awk, etc.. to set a threshold and then only email yourself those files that are above a certain size length in Kb.&lt;BR /&gt;&lt;BR /&gt;I'm sure the guys here will supply you with some tools..&lt;BR /&gt;&lt;BR /&gt;good luck!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 19:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579819#M229652</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-07-11T19:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579820#M229653</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;but if I only want to gzip the files that over 10M size , what can I do ? thx</description>
      <pubDate>Mon, 11 Jul 2005 19:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579820#M229653</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-07-11T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579821#M229654</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am new to shell prg but try the one below&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i in `ls -lrt|egrep 'file1|file2'|awk '{print $5,$9}'|tr -s " "|sed s/" "/"#"/g`&lt;BR /&gt;do&lt;BR /&gt;if [ `echo $i|cut -f1 -d "#"`  -gt 100000000000 ]&lt;BR /&gt;then&lt;BR /&gt;j=`echo $i|cut -f2 -d "#"`&lt;BR /&gt;echo "$j is greater than 10GB"&lt;BR /&gt;echo "Compressing the fiel $j&lt;BR /&gt;gzip $j&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;replace file1 and file2 with the names of your files &lt;BR /&gt;Put the script in cron and redirect the output of this script to mailx and receive the mail&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Verify the number of zeros in if loop also. bytes to GB conversion!!!!!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;CS</description>
      <pubDate>Mon, 11 Jul 2005 19:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579821#M229654</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-07-11T19:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579822#M229655</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;sorry i made it to 10Gb reduce 3 zeros in the if loop to make it to 10MB&lt;BR /&gt;&lt;BR /&gt;regrdas&lt;BR /&gt;&lt;BR /&gt;CS</description>
      <pubDate>Mon, 11 Jul 2005 19:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579822#M229655</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-07-11T19:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579823#M229656</link>
      <description>never compress any file that is being accessed or written to.. I mean, it might be open'ed by a process..&lt;BR /&gt;&lt;BR /&gt;if the file is not being used, then you can do what you want to (gzip, whatever).&lt;BR /&gt;&lt;BR /&gt;get yourself a really good tool called: LSOF&lt;BR /&gt;&lt;BR /&gt;and figure if any process is using these big files in /tmp.  If not, then do a gzip and move them out of /tmp into say: /usr/tmp or something else.&lt;BR /&gt;&lt;BR /&gt;you can also use this simple option to ls:&lt;BR /&gt;&lt;BR /&gt;ls -u /tmp/bigfile&lt;BR /&gt;&lt;BR /&gt;if the file ACCESS time is old, then you might gzip.&lt;BR /&gt;&lt;BR /&gt;I would hate to see you break something by trying to rename the file that is being written to or read from.. pls use caution.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 19:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579823#M229656</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-07-11T19:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579824#M229657</link>
      <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;I tried saju's script , but it seems too complicate for me , could suggest more simpler script ? thx</description>
      <pubDate>Mon, 11 Jul 2005 19:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579824#M229657</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-07-11T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579825#M229658</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i think u should look at the points u have assigned. 0 out of 30 (and counting) is not good.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums2.itrc.hp.com/service/forums/pageList.do?userId=CA1293896&amp;amp;listType=unassigned&amp;amp;forumId=1" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/pageList.do?userId=CA1293896&amp;amp;listType=unassigned&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;show your appreciation to those who have assisted u in finding your answers.&lt;BR /&gt;&lt;BR /&gt;regards.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 20:03:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579825#M229658</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-07-11T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579826#M229659</link>
      <description>The script from SAJU looks good, why not give this person some Points ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 20:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579826#M229659</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-07-11T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: file limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579827#M229660</link>
      <description>thx reply , &lt;BR /&gt;&lt;BR /&gt;I tried saju 's method but it seems don't have any output , and it is quite complicate for me so I don't know how to make it work , is there other simpler method can do that ? thx</description>
      <pubDate>Mon, 11 Jul 2005 23:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-limit/m-p/3579827#M229660</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-07-11T23:11:02Z</dc:date>
    </item>
  </channel>
</rss>

