<?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: Script Help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977087#M65922</link>
    <description>IT is simple. Put the while script above in a for loop which creates 100 directories. Run that script at the top directory.&lt;BR /&gt;&lt;BR /&gt;Something like this...&lt;BR /&gt;&lt;BR /&gt;LIMIT=100&lt;BR /&gt;&lt;BR /&gt;for ((a=1; a &amp;lt;= LIMIT ; a++))  &lt;BR /&gt;do&lt;BR /&gt;  mkdir dir$a&lt;BR /&gt;  cd "dir$a"&lt;BR /&gt;  &lt;ABOVE script="" here=""&gt;&lt;BR /&gt;  cd ..&lt;BR /&gt;done&lt;/ABOVE&gt;</description>
    <pubDate>Mon, 09 Apr 2007 19:25:54 GMT</pubDate>
    <dc:creator>Sreedharamurthy K</dc:creator>
    <dc:date>2007-04-09T19:25:54Z</dc:date>
    <item>
      <title>Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977079#M65914</link>
      <description>Hello All&lt;BR /&gt;&lt;BR /&gt;I am trying to write a script that would be used to populate a file of the same size (approx 300K) onto a 1TB filesystem and then repeat the process until the filesystem is 100% filled. &lt;BR /&gt;&lt;BR /&gt;I am not sure how to write the code for this at all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Being that I am a newbie to this forum and linux in general as much help as you can provide here would be very much appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you all and Happy Easter.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Apr 2007 10:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977079#M65914</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-08T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977080#M65915</link>
      <description>First, consider the  number of inodes. if you run out of inodes you cannot write more files. You specify the number of inodes for a file system in the mkfs command.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Apr 2007 12:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977080#M65915</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-04-08T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977081#M65916</link>
      <description>You can use a script like this:&lt;BR /&gt;&lt;BR /&gt;COUNT=0&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  dd if=/dev/zero of=file$COUNT bs=300k&lt;BR /&gt;COUNT=`expr $COUNT + 1`&lt;BR /&gt;done</description>
      <pubDate>Sun, 08 Apr 2007 12:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977081#M65916</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-04-08T12:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977082#M65917</link>
      <description>Thank you for the reply.&lt;BR /&gt;&lt;BR /&gt;I tried this script on my system and it builds one large file which is ok but what i am trying to do is build the same file size (300k or another size) and multiply it across the entire filesystem making millions of little files on a 1TB filesystem.&lt;BR /&gt;&lt;BR /&gt;What should i do to the script you supplied in order to tweak it to the correct output i desire.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Apr 2007 18:57:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977082#M65917</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-08T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977083#M65918</link>
      <description>Umm, nothing.  That script will work as it is.&lt;BR /&gt;&lt;BR /&gt;But the issue does reside in the fact that you'll probably run out of inodes before you run out of space using 300k files.  If so, use larger files.</description>
      <pubDate>Sun, 08 Apr 2007 23:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977083#M65918</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-04-08T23:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977084#M65919</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;What is the real objective here. Are you looking to wipe out the disk. &lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 09 Apr 2007 00:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977084#M65919</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-04-09T00:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977085#M65920</link>
      <description>You are right, one thing is missing in the script, try this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;COUNT=0&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;dd if=/dev/zero of=file$COUNT bs=300k count=1&lt;BR /&gt;COUNT=`expr $COUNT + 1`&lt;BR /&gt;done</description>
      <pubDate>Mon, 09 Apr 2007 08:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977085#M65920</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-04-09T08:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977086#M65921</link>
      <description>Thanks again for the post Ivan. That worked fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now just to add more to my confusion, i was told that they wanted to change this up a little bit so here goes what i need to do:&lt;BR /&gt;&lt;BR /&gt;1) The application's output directory structure creates 100 directories called 00 thru 99.&lt;BR /&gt;&lt;BR /&gt;2) since the filesystem size is 1TB and were using an output file size of 300K, if my math is correct that would equate out to about 3 million files for the whole filesystem.&lt;BR /&gt;&lt;BR /&gt;3) based on #1 &amp;amp; #2, what i have to do now is take the script you provided me and let it write 30,000 files per directory while walking each directory and doing the same thing until it reaches the 99 directory.&lt;BR /&gt;&lt;BR /&gt;Hope this is a simple thing for you cause it sure has me confused.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Mon, 09 Apr 2007 15:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977086#M65921</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-09T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977087#M65922</link>
      <description>IT is simple. Put the while script above in a for loop which creates 100 directories. Run that script at the top directory.&lt;BR /&gt;&lt;BR /&gt;Something like this...&lt;BR /&gt;&lt;BR /&gt;LIMIT=100&lt;BR /&gt;&lt;BR /&gt;for ((a=1; a &amp;lt;= LIMIT ; a++))  &lt;BR /&gt;do&lt;BR /&gt;  mkdir dir$a&lt;BR /&gt;  cd "dir$a"&lt;BR /&gt;  &lt;ABOVE script="" here=""&gt;&lt;BR /&gt;  cd ..&lt;BR /&gt;done&lt;/ABOVE&gt;</description>
      <pubDate>Mon, 09 Apr 2007 19:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977087#M65922</guid>
      <dc:creator>Sreedharamurthy K</dc:creator>
      <dc:date>2007-04-09T19:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977088#M65923</link>
      <description>I will try that but one question here.&lt;BR /&gt;&lt;BR /&gt;What can i do to limit the number of files created to 30,000 total per directory thus giving me 3 million files total?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, it is much appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 19:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977088#M65923</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-09T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977089#M65924</link>
      <description>to limit, change the condition in while loop:&lt;BR /&gt;&lt;BR /&gt;instead of while true change it to&lt;BR /&gt;&lt;BR /&gt;while [ $COUNT â  le 30000 ]</description>
      <pubDate>Mon, 09 Apr 2007 23:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977089#M65924</guid>
      <dc:creator>Sreedharamurthy K</dc:creator>
      <dc:date>2007-04-09T23:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977090#M65925</link>
      <description>You can refer to this guide. Has good examples and scripting info:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org/LDP/abs/abs-guide.pdf" target="_blank"&gt;http://www.tldp.org/LDP/abs/abs-guide.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2007 23:43:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977090#M65925</guid>
      <dc:creator>Sreedharamurthy K</dc:creator>
      <dc:date>2007-04-09T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977091#M65926</link>
      <description>The last line you wrote there came across with a bunch of special characters.&lt;BR /&gt;&lt;BR /&gt;How would the while statement be coded as?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 10 Apr 2007 07:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977091#M65926</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-10T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977092#M65927</link>
      <description>the Ã¢ should be a dash.</description>
      <pubDate>Tue, 10 Apr 2007 12:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977092#M65927</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T12:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977093#M65928</link>
      <description>wow, copying and pasting the crazy 'a' changed it to another character.</description>
      <pubDate>Tue, 10 Apr 2007 12:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977093#M65928</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977094#M65929</link>
      <description>Oh!! I didn't realize that copy paste would have changed it..&lt;BR /&gt;&lt;BR /&gt;Thanks.. :)&lt;BR /&gt;&lt;BR /&gt;Yes, it is -le</description>
      <pubDate>Tue, 10 Apr 2007 12:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977094#M65929</guid>
      <dc:creator>Sreedharamurthy K</dc:creator>
      <dc:date>2007-04-10T12:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977095#M65930</link>
      <description>Thad,&lt;BR /&gt;&lt;BR /&gt;I think you should assign some points to Sreedharamurthy K. He has only done your work for you.</description>
      <pubDate>Tue, 10 Apr 2007 13:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977095#M65930</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977096#M65931</link>
      <description>Oh,&lt;BR /&gt;&lt;BR /&gt;And Ivan as well.</description>
      <pubDate>Tue, 10 Apr 2007 13:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977096#M65931</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T13:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977097#M65932</link>
      <description>Thank you all, this worked to perfection.&lt;BR /&gt;&lt;BR /&gt;Kudos to all of you and yes points are forthcoming as well&lt;BR /&gt;&lt;BR /&gt;BZ to all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This forum rocks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 13:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3977097#M65932</guid>
      <dc:creator>Thad Jones</dc:creator>
      <dc:date>2007-04-10T13:33:57Z</dc:date>
    </item>
  </channel>
</rss>

