<?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: Another Scripting Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191470#M898835</link>
    <description>Jeroen,&lt;BR /&gt;I'd though of that, the problem with this is what level do I set the random number too. There are also certain files that I don't want to get back.&lt;BR /&gt;&lt;BR /&gt;Thanks anyway,&lt;BR /&gt;Pete</description>
    <pubDate>Fri, 13 Feb 2004 08:32:51 GMT</pubDate>
    <dc:creator>Peter Day_2</dc:creator>
    <dc:date>2004-02-13T08:32:51Z</dc:date>
    <item>
      <title>Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191466#M898831</link>
      <description>I've put together a way of getting a random file so that I can check the status of our backups. &lt;BR /&gt;&lt;BR /&gt;But is there a simpler way of getting this random file.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Feb 2004 08:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191466#M898831</guid>
      <dc:creator>Peter Day_2</dc:creator>
      <dc:date>2004-02-13T08:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191467#M898832</link>
      <description>what is the file name scheme you are using?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Fri, 13 Feb 2004 08:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191467#M898832</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-02-13T08:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191468#M898833</link>
      <description>Its a bit messy, but the way that I have done it, to ensure that it is a 'random' file.&lt;BR /&gt;&lt;BR /&gt;bdf |Randomly pick a mounted filesystem&lt;BR /&gt;ls | Get a file, if is a directory drill down until I do get a file.&lt;BR /&gt;&lt;BR /&gt;The whole script is about 30 lines, but I'm sure there is an easier way of doing it.</description>
      <pubDate>Fri, 13 Feb 2004 08:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191468#M898833</guid>
      <dc:creator>Peter Day_2</dc:creator>
      <dc:date>2004-02-13T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191469#M898834</link>
      <description>What about: &lt;BR /&gt;&lt;BR /&gt;generate a random number N&lt;BR /&gt;do a find -type f &lt;BR /&gt;and use awk to print line N.&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Fri, 13 Feb 2004 08:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191469#M898834</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-02-13T08:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191470#M898835</link>
      <description>Jeroen,&lt;BR /&gt;I'd though of that, the problem with this is what level do I set the random number too. There are also certain files that I don't want to get back.&lt;BR /&gt;&lt;BR /&gt;Thanks anyway,&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Feb 2004 08:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191470#M898835</guid>
      <dc:creator>Peter Day_2</dc:creator>
      <dc:date>2004-02-13T08:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191471#M898836</link>
      <description>What you could do is get random filesystem and then run ncheck -i &lt;RANDOM-NUMBER&gt; on it until you get a file that is acceptable to use as test...&lt;BR /&gt;Or get a random number and do:&lt;BR /&gt;find &lt;MOUNT-POINT&gt; -type f | sed '&lt;RANDOM-NUMBER&gt;p'&lt;BR /&gt;&lt;BR /&gt;bdf -i will help you find limits for the random number in the latter case.&lt;/RANDOM-NUMBER&gt;&lt;/MOUNT-POINT&gt;&lt;/RANDOM-NUMBER&gt;</description>
      <pubDate>Fri, 13 Feb 2004 08:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191471#M898836</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-13T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191472#M898837</link>
      <description>Given the nature of your situation, if what you have is working and doesn't consume a lot of resources to run, I'd stick with it. It may be ugly, but if it works, that's the important part.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Fri, 13 Feb 2004 08:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191472#M898837</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-02-13T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191473#M898838</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;you may generate more than 1 randomnumber, or retry if the number is too high, although this makes it less random.&lt;BR /&gt;&lt;BR /&gt;(You have posed a question on random numbers. Usually a random generator generates a number between 0 and 1 (no access to manpages iright now). You multiply this by the amount of files you have.)&lt;BR /&gt;&lt;BR /&gt;Why do you want certain files excluded?&lt;BR /&gt;You are not restoring the files to the original location I assume?&lt;BR /&gt;&lt;BR /&gt;Greetings,&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Fri, 13 Feb 2004 08:48:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191473#M898838</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-02-13T08:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191474#M898839</link>
      <description>As for my find solution: the sed command should be 'sed -n "&lt;RANDOM-NUMBER&gt;p"'&lt;/RANDOM-NUMBER&gt;</description>
      <pubDate>Fri, 13 Feb 2004 09:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191474#M898839</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-13T09:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Another Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191475#M898840</link>
      <description>Is environmental variable RANDOM of any user here?</description>
      <pubDate>Fri, 13 Feb 2004 09:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-scripting-question/m-p/3191475#M898840</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-02-13T09:26:08Z</dc:date>
    </item>
  </channel>
</rss>

