<?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: writing one script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630425#M676221</link>
    <description>&lt;!--!*#--&gt;&amp;gt; i need to [write a] basic script [...]&lt;BR /&gt;&lt;BR /&gt;What's stopping you?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The basic script, named "logmon" (for log&lt;BR /&gt;&amp;gt; monitor) will need to do the following:&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Sounds like a good homework problem.  Perhaps&lt;BR /&gt;you should try to do it yourself.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] de ned [...]&lt;BR /&gt;&lt;BR /&gt;"defined"?  (If you can't do copy+paste, I&lt;BR /&gt;can see why you might seek help.)</description>
    <pubDate>Sat, 08 May 2010 11:23:45 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-05-08T11:23:45Z</dc:date>
    <item>
      <title>writing one script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630424#M676220</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;i need to basic script will be able to look at a log file periodically and report on any new lines that contain&lt;BR /&gt;either "error" or "warning". The search for this text is to be "case insensitive". This means that the script&lt;BR /&gt;needs to accept a line containing either "error", "Error", "ERROR" or the word error spelt in any other&lt;BR /&gt;combination of upper and lower case letters as being functionally equivalent.&lt;BR /&gt;with this Specific Requirements&lt;BR /&gt;The basic script, named "logmon" (for log monitor) will need to do the following:&lt;BR /&gt;  be able to run in an environment that does not include a path. (i.e. the environment provided by&lt;BR /&gt;cron)&lt;BR /&gt;1&lt;BR /&gt;  accept the name of a log le as the sole command line argument&lt;BR /&gt;  search the speci ed log le for lines that have been added since the previous search. (It is up to you&lt;BR /&gt;how you implement this - there are several possible solutions to this problem.)&lt;BR /&gt;  construct an e-mail reporting any lines that contain either "error" or \warning" in any combination&lt;BR /&gt;of upper and lower case letters (This is easier than some of the alternatives.)&lt;BR /&gt;  send the e-mail to the address speci ed in the RECIPIENT shell variable which is de ned within the&lt;BR /&gt;script&lt;BR /&gt;  generally follow good scripting practice as de ned in the lab notes and Scripting Notes booklet. (Note&lt;BR /&gt;that the examples in the lecture notes are not to be considered good examples of scripting standards&lt;BR /&gt;as implementation of some aspects of the standards was intentionally omitted to allow the code to&lt;BR /&gt;fit on a single lecture slide.)&lt;BR /&gt;&lt;BR /&gt;Thanks a lot</description>
      <pubDate>Sat, 08 May 2010 08:53:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630424#M676220</guid>
      <dc:creator>itrc55</dc:creator>
      <dc:date>2010-05-08T08:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: writing one script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630425#M676221</link>
      <description>&lt;!--!*#--&gt;&amp;gt; i need to [write a] basic script [...]&lt;BR /&gt;&lt;BR /&gt;What's stopping you?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The basic script, named "logmon" (for log&lt;BR /&gt;&amp;gt; monitor) will need to do the following:&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Sounds like a good homework problem.  Perhaps&lt;BR /&gt;you should try to do it yourself.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] de ned [...]&lt;BR /&gt;&lt;BR /&gt;"defined"?  (If you can't do copy+paste, I&lt;BR /&gt;can see why you might seek help.)</description>
      <pubDate>Sat, 08 May 2010 11:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630425#M676221</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-05-08T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: writing one script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630426#M676222</link>
      <description>For basic of scripting:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org/LDP/abs/html/index.html" target="_blank"&gt;http://www.tldp.org/LDP/abs/html/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SNS</description>
      <pubDate>Sun, 09 May 2010 07:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630426#M676222</guid>
      <dc:creator>S.N.S</dc:creator>
      <dc:date>2010-05-09T07:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: writing one script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630427#M676223</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; generally follow good scripting practice as de ned in the lab notes and Scripting Notes booklet. (Note that the examples in the lecture notes are not to be considered good examples of scripting standards as implementation of some aspects of the standards was intentionally omitted to allow the code to fit on a single lecture slide.)&lt;BR /&gt;&lt;BR /&gt;This site isn't appropriate for homework assignments.&lt;BR /&gt;&lt;BR /&gt;You will learn more from your course by trying its assignments yourself, rather than claiming someone else's offering as your own.  Whether or not your attempts work well is immaterial.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 09 May 2010 15:28:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-one-script/m-p/4630427#M676223</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-05-09T15:28:26Z</dc:date>
    </item>
  </channel>
</rss>

