<?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: Tail and Grep in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182288#M460171</link>
    <description>Hi,&lt;BR /&gt;What is the output you are getting ?&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
    <pubDate>Thu, 18 Jun 2009 03:35:49 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2009-06-18T03:35:49Z</dc:date>
    <item>
      <title>Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182287#M460170</link>
      <description>Peace all,&lt;BR /&gt;&lt;BR /&gt;I was trying to use tail and grep for log monitoring.&lt;BR /&gt;Such as this:&lt;BR /&gt;    tail -f my.log | grep error&lt;BR /&gt;&lt;BR /&gt;It's working in Linux but doesn't seem so in HP-UX 11.23.&lt;BR /&gt;&lt;BR /&gt;Any help?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;=adley=</description>
      <pubDate>Thu, 18 Jun 2009 02:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182287#M460170</guid>
      <dc:creator>Brahnda A. Eleazar</dc:creator>
      <dc:date>2009-06-18T02:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182288#M460171</link>
      <description>Hi,&lt;BR /&gt;What is the output you are getting ?&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 18 Jun 2009 03:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182288#M460171</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-18T03:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182289#M460172</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;tail -f my.log | grep error&lt;BR /&gt;Its working for me on both Linux and HPUX 11.23,11.11.&lt;BR /&gt;&lt;BR /&gt;Anyway tail -f option is ignored when reading from a pipe.&lt;BR /&gt;Instead of "-f" option you can put a sleep argument in your script for the desired time.&lt;BR /&gt;&lt;BR /&gt;Cheers!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 03:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182289#M460172</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2009-06-18T03:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182290#M460173</link>
      <description>Looks like with '-f' option waits for further input even after the EOF is reached(see manpage). So, it will show you the pattern, but, won't terminate.&lt;BR /&gt;&lt;BR /&gt;What is the difference you are seeing? Can you post both the outputs?&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 03:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182290#M460173</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-06-18T03:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182291#M460174</link>
      <description>Peace all,&lt;BR /&gt;&lt;BR /&gt;Thanks for the inputs.&lt;BR /&gt;&lt;BR /&gt;The problem is there is no output.&lt;BR /&gt;It simply hung after I pressed ENTER (it's been like this for 5 minutes almost) :)&lt;BR /&gt;&lt;BR /&gt;Well, I asked this because I wanted to monitor IPMON logs.&lt;BR /&gt;But, I think I'll just reroute the ipmon logs to a separate file instead. :)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;=adley=</description>
      <pubDate>Thu, 18 Jun 2009 03:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182291#M460174</guid>
      <dc:creator>Brahnda A. Eleazar</dc:creator>
      <dc:date>2009-06-18T03:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182292#M460175</link>
      <description>May be there is no 'error' thus far!</description>
      <pubDate>Thu, 18 Jun 2009 04:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182292#M460175</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-06-18T04:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182293#M460176</link>
      <description>Peace,&lt;BR /&gt;&lt;BR /&gt;I thought about that.&lt;BR /&gt;The thing is, I did try to simulate an error attempt.&lt;BR /&gt;&lt;BR /&gt;For example, if the ipf rule is this:&lt;BR /&gt;pass in quick on lan8 proto tcp from 10.192.x.y to any port = NNNN keep state&lt;BR /&gt;block in log quick on lan8 proto tcp from any to any port = NNNN keep state&lt;BR /&gt;&lt;BR /&gt;I tried attempting to the same port from, say, 10.192.x.z, I did get rejected by ipf. But no logs of the blocking.&lt;BR /&gt;&lt;BR /&gt;But nevermind, I have re-routed the logs to another file instead of syslog.log; so I can tail there instead easily. :)&lt;BR /&gt;&lt;BR /&gt;Really appreciate everyone's help!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;=adley=</description>
      <pubDate>Thu, 18 Jun 2009 04:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182293#M460176</guid>
      <dc:creator>Brahnda A. Eleazar</dc:creator>
      <dc:date>2009-06-18T04:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182294#M460177</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;tail -f my.log | grep error&lt;BR /&gt;&lt;BR /&gt;will open your my.log and waiting for any line which is having error insert into the my.log file.&lt;BR /&gt;&lt;BR /&gt;if your my.log file will not getting any error string then you will not getting any error.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 18 Jun 2009 05:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182294#M460177</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-18T05:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182295#M460178</link>
      <description>see..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# echo "error $(date)" &amp;gt;&amp;gt; /tmp/pv&lt;BR /&gt;&lt;BR /&gt;# tail -f /tmp/pv |grep error&lt;BR /&gt;error Thu Jun 18 10:00:49 UTC 2009&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Thu, 18 Jun 2009 06:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182295#M460178</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2009-06-18T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182296#M460179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;perhaps you should try a non-case sensitive search:&lt;BR /&gt;&lt;BR /&gt;# tail -f my.log | grep -i error&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 18 Jun 2009 06:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182296#M460179</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2009-06-18T06:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182297#M460180</link>
      <description>Peace all,&lt;BR /&gt;&lt;BR /&gt;Turns out you're all correct.&lt;BR /&gt;It did work in HP-UX 11.23.&lt;BR /&gt;The problem for me, perhaps, was that I'm trying to tail and grep from a very big text file and it took quite a long time to finish (I didn't bother waiting though).&lt;BR /&gt;&lt;BR /&gt;I tried the exact command to a much smaller text file and it worked! :)&lt;BR /&gt;&lt;BR /&gt;Sorry for the false alarm.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;=adley=</description>
      <pubDate>Thu, 18 Jun 2009 07:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182297#M460180</guid>
      <dc:creator>Brahnda A. Eleazar</dc:creator>
      <dc:date>2009-06-18T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tail and Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182298#M460181</link>
      <description>Thread closed.&lt;BR /&gt;&lt;BR /&gt;Thanks everyone.</description>
      <pubDate>Thu, 18 Jun 2009 07:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-and-grep/m-p/5182298#M460181</guid>
      <dc:creator>Brahnda A. Eleazar</dc:creator>
      <dc:date>2009-06-18T07:46:54Z</dc:date>
    </item>
  </channel>
</rss>

