<?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: shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725340#M655355</link>
    <description>Hello shell&lt;BR /&gt;&lt;BR /&gt;it is funny shell script is asking about shell script. :) &lt;BR /&gt;anyway .&lt;BR /&gt;&lt;BR /&gt;As far as i understand that /tmp/check.rx/chk.chs.files is your executable which you use to check the files. &lt;BR /&gt;&lt;BR /&gt;no need for a script to run this command. all what you need is to put this path "/tmp/check.rx/chk.chs.files" in your cron table and let it run it for you.&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Dec 2010 05:55:36 GMT</pubDate>
    <dc:creator>kemo</dc:creator>
    <dc:date>2010-12-13T05:55:36Z</dc:date>
    <item>
      <title>shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725339#M655354</link>
      <description>dear expert &lt;BR /&gt;usually i'm  manual to run this  CHECK.FILES command to check the file is got any problem or not .&lt;BR /&gt;Right now ,i wan to use crond job to control it. so i think i need to write a shell script to control it . by the way the path of file is /tmp/check.rx/chk.chs.files&lt;BR /&gt;&lt;BR /&gt;may i know write the shell script ? &lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2010 03:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725339#M655354</guid>
      <dc:creator>shell script_1</dc:creator>
      <dc:date>2010-12-13T03:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725340#M655355</link>
      <description>Hello shell&lt;BR /&gt;&lt;BR /&gt;it is funny shell script is asking about shell script. :) &lt;BR /&gt;anyway .&lt;BR /&gt;&lt;BR /&gt;As far as i understand that /tmp/check.rx/chk.chs.files is your executable which you use to check the files. &lt;BR /&gt;&lt;BR /&gt;no need for a script to run this command. all what you need is to put this path "/tmp/check.rx/chk.chs.files" in your cron table and let it run it for you.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2010 05:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725340#M655355</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2010-12-13T05:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725341#M655356</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; usually i'm manual to run this CHECK.FILES command to check the file is got any problem or not . Right now ,i wan to use crond job to control it. so i think i need to write a shell script to control it . by the way the path of file is /tmp/check.rx/chk.chs.files&lt;BR /&gt;&lt;BR /&gt;When running a script from 'cron' the most common failure (if any) is that 'cron' offers only a rudimentary environment.  Essentially, you have your 'HOME', 'LOGNAME', 'SHELL' and most importantly a simple, default 'PATH'.  Any variables you have defined and exported in your login shell are absent.&lt;BR /&gt;&lt;BR /&gt;Your choices are several.  Source (read) your '.profile' and then run your script:&lt;BR /&gt;&lt;BR /&gt;# . ./profile;/tmp/check.rx/chk.chs.files&lt;BR /&gt;&lt;BR /&gt;Note the dot ('.') followed by whitespace, followed by the '.profile'.&lt;BR /&gt;&lt;BR /&gt;Another choice is to encode *all* of the variables you need in your script.  A third choice is to declar the variables your script needs in a separate file which can be sourced (read) by any script (or profile) requiring them.&lt;BR /&gt;&lt;BR /&gt;There are any number of posts in the forum with more details on the benefits and pitfalls of the above methods.&lt;BR /&gt;&lt;BR /&gt;By the way, putting a production, permanent script in the '/tmp' directory is  bad practice.  It's liable to get removed during a reboot or vanquished by a system administrator who "knows better".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 Dec 2010 14:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/4725341#M655356</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-13T14:09:28Z</dc:date>
    </item>
  </channel>
</rss>

