<?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 Control in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733171#M836660</link>
    <description>Trenta,&lt;BR /&gt;&lt;BR /&gt;As Klaus said, you need to add a lot of comments to your script.&lt;BR /&gt;&lt;BR /&gt;And you need to add a lot of ERROR checking. You are performing "rm"'s and "cd"'s without any error checking, which is very very dangerous.&lt;BR /&gt;&lt;BR /&gt;I'd also suggest putting "echo" in front of the commands like "rm", just to make sure they are going to perform the way you want it to. Also, use "set -x" to "trace" the script!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Wed, 29 May 2002 11:34:41 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-05-29T11:34:41Z</dc:date>
    <item>
      <title>Script Control</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733169#M836658</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I wrote a script, and I'd like someone to suggest me if it's right, if there are problems.&lt;BR /&gt;in attachement there is also the requirements.&lt;BR /&gt;&lt;BR /&gt;Regards, Angelo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Overview of the ERS use of files:&lt;BR /&gt;&lt;BR /&gt;When the variable XSM_ER_WRITE_EVENTS_TO_FILE is set to 1, the event router will maintain its processing information within the directory $XSM_TMP/ER.  This processing information can be used to find a stale GUI registration.  If XSM_ER_WRITE_TO_FILE is set to 0, there will not be enough information in the $XSM_TMP/ER directory to identify a stale registration.  The following files that can be found within directory $XSM_TMP/ER are used by the event router:&lt;BR /&gt;&lt;BR /&gt;events/e## -- These directories hold the event files.&lt;BR /&gt;registrations/pcNameOrIP.PID -- These files contain the DCE object name and the GUI registration infomation.  The first line is the DCE object name and the second line to the last list are the registration strings.&lt;BR /&gt;events_sent/pcNameOrIP.PID -- These files contain the last event number that was successfully sent to the GUI.&lt;BR /&gt;&lt;BR /&gt;Identifying a stale GUI registration&lt;BR /&gt;&lt;BR /&gt;Note:  The check for stale registrations needs to ignore the UNIX server processes.&lt;BR /&gt;&lt;BR /&gt;The post time for the oldest event is timestamp on the oldest file in the events directory.  If this file is over 20 minutes old, there is a back log of events.  The UNIX command for printing this timestamp is: &lt;BR /&gt;ls -ltr $XSM_TMP/ER/events/e*/* | awk 'NR == 1 {print $8}'&lt;BR /&gt;&lt;BR /&gt;The GUIs causing the backlog are all the GUIs with files in the events_sent directory:&lt;BR /&gt;that have a length of 0 (i.e. no events were sent to that PC) or&lt;BR /&gt;where the contents of the file refer to an event file that does not exist.  i.e. if the file &lt;BR /&gt; $XSM_TMP/ER/events/e*/$(cat $XSM_TMP/ER/events_sent/pcNameOrIP.PID)&lt;BR /&gt;exists then the GUI registration is active.  Otherwise the GUI registration is stale.&lt;BR /&gt;&lt;BR /&gt;The surest way to remove the stale GUI registration is to:&lt;BR /&gt;&lt;BR /&gt;Identify the events_sent and registration files for the stale GUI registrations&lt;BR /&gt;Stop the event router&lt;BR /&gt;Remove the identified events_sent and registration files&lt;BR /&gt;Start the event router&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 07:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733169#M836658</guid>
      <dc:creator>Trenta Angelo</dc:creator>
      <dc:date>2002-05-29T07:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script Control</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733170#M836659</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;not very nice to burden our community with your day to day job. I hope you are paid for it.&lt;BR /&gt;The script is lacking everything which makes it understandable without unnecessary deep involvement. Please write comments before every paragraph of your script.&lt;BR /&gt;&lt;BR /&gt;Klaus</description>
      <pubDate>Wed, 29 May 2002 07:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733170#M836659</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2002-05-29T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Control</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733171#M836660</link>
      <description>Trenta,&lt;BR /&gt;&lt;BR /&gt;As Klaus said, you need to add a lot of comments to your script.&lt;BR /&gt;&lt;BR /&gt;And you need to add a lot of ERROR checking. You are performing "rm"'s and "cd"'s without any error checking, which is very very dangerous.&lt;BR /&gt;&lt;BR /&gt;I'd also suggest putting "echo" in front of the commands like "rm", just to make sure they are going to perform the way you want it to. Also, use "set -x" to "trace" the script!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 29 May 2002 11:34:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733171#M836660</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-29T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script Control</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733172#M836661</link>
      <description>read this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.nd.edu/~arodrig6/tao/" target="_blank"&gt;http://www.nd.edu/~arodrig6/tao/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Wed, 29 May 2002 13:06:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-control/m-p/2733172#M836661</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-05-29T13:06:45Z</dc:date>
    </item>
  </channel>
</rss>

