<?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: Monitor Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147864#M453979</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Assuming that the old syslog is OLDsyslog.log, you could:&lt;BR /&gt;&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;cat *syslog.log | monitor_script&lt;BR /&gt;&lt;BR /&gt;This will concatenate the two files into a single data stream, and pipe it into your monitoring script.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;&lt;BR /&gt;George</description>
    <pubDate>Sun, 28 Dec 2008 23:31:12 GMT</pubDate>
    <dc:creator>George Spencer_4</dc:creator>
    <dc:date>2008-12-28T23:31:12Z</dc:date>
    <item>
      <title>Monitor Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147862#M453977</link>
      <description>&lt;!--!*#--&gt;Hi Guys, &lt;BR /&gt;I have a script to monitor my servers HP-UX, but I need to filter the syslog.log and old syslog.log to just show me the logs of the current day and previous day log.&lt;BR /&gt;Annex the entire script to see how I can help. &lt;BR /&gt;&lt;BR /&gt;Greetings,</description>
      <pubDate>Fri, 26 Dec 2008 14:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147862#M453977</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2008-12-26T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147863#M453978</link>
      <description>One minor point.  You continually evaluate the name of the logfile.  You should assign it to a variable and use that:&lt;BR /&gt;LOG=/tmp/moni_diario/$(hostname)_$(date "+%m-%d-%y").txt&lt;BR /&gt;&lt;BR /&gt;And replace your more(1) by cat(1):&lt;BR /&gt;cat /var/adm/syslog/mail.log &amp;gt;&amp;gt; $LOG&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I need to filter the syslog.log and old syslog.log to just show me the logs of the current day and previous&lt;BR /&gt;&lt;BR /&gt;Can you provide a few lines so we know the format?</description>
      <pubDate>Sat, 27 Dec 2008 00:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147863#M453978</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-27T00:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147864#M453979</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Assuming that the old syslog is OLDsyslog.log, you could:&lt;BR /&gt;&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;cat *syslog.log | monitor_script&lt;BR /&gt;&lt;BR /&gt;This will concatenate the two files into a single data stream, and pipe it into your monitoring script.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;&lt;BR /&gt;George</description>
      <pubDate>Sun, 28 Dec 2008 23:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147864#M453979</guid>
      <dc:creator>George Spencer_4</dc:creator>
      <dc:date>2008-12-28T23:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147865#M453980</link>
      <description>Thanks+}&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Mar 2009 16:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-script-help/m-p/5147865#M453980</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2009-03-02T16:17:13Z</dc:date>
    </item>
  </channel>
</rss>

