<?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 unix scripting - understanding read_param in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036600#M432011</link>
    <description>&lt;!--!*#--&gt;Please see the attached unix script.  It copies oracle redo logs from our production machine to the contingency machine every 15 minutes. &lt;BR /&gt;&lt;BR /&gt;My boss has asked me to look at it and understand it as I may soon have to support it.  I've done some shell scripting in the past so I'm not a novice; having said that I'm no expert either. &lt;BR /&gt;&lt;BR /&gt;The script makes use of something called 'read_param'.  My question is this :  what is read_param and where is it defined ?  By putting set -x at the start of the script I can see that it does what it says on the tin i.e. it reads a parameter.  I can see that it reads the value of LOGHOME (for example) as /var/alexbkup.  Fair enough, but I've looked until I'm blue in the face to find where read_param is defined.  This is where I've looked so far :&lt;BR /&gt;&lt;BR /&gt;Is it a unix command ?&lt;BR /&gt;/etc/profile&lt;BR /&gt;$HOME/.profile&lt;BR /&gt;aliases&lt;BR /&gt;$HOME/.kshrc&lt;BR /&gt;Variables within the script&lt;BR /&gt;Functions within the script&lt;BR /&gt;&lt;BR /&gt;I can't see it defined anywhere.  My guess is I'm missing something really obvious.  If any of you guys can help I'd be most appreciative.  Thanks&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Mar 2007 06:39:43 GMT</pubDate>
    <dc:creator>Derek Brown</dc:creator>
    <dc:date>2007-03-27T06:39:43Z</dc:date>
    <item>
      <title>unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036600#M432011</link>
      <description>&lt;!--!*#--&gt;Please see the attached unix script.  It copies oracle redo logs from our production machine to the contingency machine every 15 minutes. &lt;BR /&gt;&lt;BR /&gt;My boss has asked me to look at it and understand it as I may soon have to support it.  I've done some shell scripting in the past so I'm not a novice; having said that I'm no expert either. &lt;BR /&gt;&lt;BR /&gt;The script makes use of something called 'read_param'.  My question is this :  what is read_param and where is it defined ?  By putting set -x at the start of the script I can see that it does what it says on the tin i.e. it reads a parameter.  I can see that it reads the value of LOGHOME (for example) as /var/alexbkup.  Fair enough, but I've looked until I'm blue in the face to find where read_param is defined.  This is where I've looked so far :&lt;BR /&gt;&lt;BR /&gt;Is it a unix command ?&lt;BR /&gt;/etc/profile&lt;BR /&gt;$HOME/.profile&lt;BR /&gt;aliases&lt;BR /&gt;$HOME/.kshrc&lt;BR /&gt;Variables within the script&lt;BR /&gt;Functions within the script&lt;BR /&gt;&lt;BR /&gt;I can't see it defined anywhere.  My guess is I'm missing something really obvious.  If any of you guys can help I'd be most appreciative.  Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Mar 2007 06:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036600#M432011</guid>
      <dc:creator>Derek Brown</dc:creator>
      <dc:date>2007-03-27T06:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036601#M432012</link>
      <description>Hi,&lt;BR /&gt;there seem to be some sort of eval equivalent going on.&lt;BR /&gt;&lt;BR /&gt;Search in your PATH:&lt;BR /&gt;"/bin:/usr/bin:/usr/local/bin:/opt/backups/bin"</description>
      <pubDate>Tue, 27 Mar 2007 06:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036601#M432012</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-27T06:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036602#M432013</link>
      <description>Hi Derek:&lt;BR /&gt;&lt;BR /&gt;Your 'read_param' is an external script or binary that returns a value to the calling script.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;LIMIT=$(read_param FS_THRESHOLD)&lt;BR /&gt;&lt;BR /&gt;...set the value of LIMIT to whatever 'read_param' makes it based on the key FS_THRESHOLD.&lt;BR /&gt;&lt;BR /&gt;It would be clearer and much cleaner (security-wise) if the references were made with an absolute path rather than relying on "." being in the user's path.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 Mar 2007 06:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036602#M432013</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-27T06:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036603#M432014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;since '.' is NOT in the PATH set by the script:&lt;BR /&gt;export PATH="/bin:/usr/bin:/usr/local/bin:/opt/backups/bin"&lt;BR /&gt;&lt;BR /&gt;... and is not a std-command either, you'll have to look into&lt;BR /&gt;/usr/local/bin&lt;BR /&gt;/opt/backups/bin&lt;BR /&gt;for file called 'read_param'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 27 Mar 2007 08:26:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036603#M432014</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-03-27T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036604#M432015</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Peter N. wrote: since '.' is NOT in the PATH set by the script:&lt;BR /&gt;&lt;BR /&gt;Yes, I totally missed the fact the script sets its own PATH as opposed to inheriting it.  In fact, this is good technique.  Examine the directories Peter noted for the 'read_param' entity.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 Mar 2007 09:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036604#M432015</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-27T09:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036605#M432016</link>
      <description>&lt;!--!*#--&gt;Thanks guys.  Problems solved now. &lt;BR /&gt;I want a kick up the behind for not spotting this myself.  read_param was simply a script in /opt/backups/bin</description>
      <pubDate>Tue, 27 Mar 2007 09:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036605#M432016</guid>
      <dc:creator>Derek Brown</dc:creator>
      <dc:date>2007-03-27T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: unix scripting - understanding read_param</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036606#M432017</link>
      <description>&amp;gt;I want a kick up the behind for not spotting this myself.&lt;BR /&gt;&lt;BR /&gt;If you do a "whence -v", it will tell you what the shell thinks it is.</description>
      <pubDate>Tue, 27 Mar 2007 23:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting-understanding-read-param/m-p/5036606#M432017</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-27T23:35:21Z</dc:date>
    </item>
  </channel>
</rss>

