<?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 for searching in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156793#M684152</link>
    <description>But will this portion:&lt;BR /&gt; typeset FILE="sshd.log.$(date +%a)"   &lt;BR /&gt;&lt;BR /&gt;difference between .Mon and .Tue and .Wed?</description>
    <pubDate>Thu, 12 Feb 2009 20:21:26 GMT</pubDate>
    <dc:creator>Adam W.</dc:creator>
    <dc:date>2009-02-12T20:21:26Z</dc:date>
    <item>
      <title>script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156791#M684150</link>
      <description>Guru's, I am VERY new to scripting (like I know nothing) and need some help. we have logging setup to where every day of the week a report is created from sshd.log and syslog.log, looking for failed authentications. The files are named sshd.log.Mon sshd.log.Tue  etc... and syslog.log.Mon and syslog.log.Tue and so on for all 7 days of the week. I need to set something up that will automatically, every morning, search the specified file for that day of the week for a few select words like "failed" and "warning". I do not even know where to begin. Any help would be great.</description>
      <pubDate>Thu, 12 Feb 2009 19:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156791#M684150</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2009-02-12T19:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156792#M684151</link>
      <description>Hi Adam:&lt;BR /&gt;&lt;BR /&gt;This could be as simple as:&lt;BR /&gt;&lt;BR /&gt;# cat ./searchlog&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset FILE="sshd.log.$(date +%a)"&lt;BR /&gt;grep -Ei "failed|warning" ${FILE}&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;...then, execute as needed or create a crontab to run every day as any convenient time.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 12 Feb 2009 20:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156792#M684151</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-02-12T20:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156793#M684152</link>
      <description>But will this portion:&lt;BR /&gt; typeset FILE="sshd.log.$(date +%a)"   &lt;BR /&gt;&lt;BR /&gt;difference between .Mon and .Tue and .Wed?</description>
      <pubDate>Thu, 12 Feb 2009 20:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156793#M684152</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2009-02-12T20:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156794#M684153</link>
      <description>Hi (again) Adam:&lt;BR /&gt;&lt;BR /&gt;# echo "sshd.log.$(date +%a)"&lt;BR /&gt;sshd.log.Thu&lt;BR /&gt;&lt;BR /&gt;...or the manpages for 'date(1)' will answer your question.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 12 Feb 2009 20:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156794#M684153</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-02-12T20:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156795#M684154</link>
      <description>Why not try it out and see?&lt;BR /&gt;&lt;BR /&gt;Or, have a look at the 'date' man page to see what 'date +%a' does.</description>
      <pubDate>Thu, 12 Feb 2009 20:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156795#M684154</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-02-12T20:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156796#M684155</link>
      <description>I looked and pulled some good info from the man page. I had to make a slight adjustment, but nothing major. Thanks everyone.</description>
      <pubDate>Fri, 13 Feb 2009 15:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156796#M684155</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2009-02-13T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: script for searching</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156797#M684156</link>
      <description>Thanks.</description>
      <pubDate>Fri, 13 Feb 2009 15:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-searching/m-p/5156797#M684156</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2009-02-13T15:04:29Z</dc:date>
    </item>
  </channel>
</rss>

