<?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: Scrip error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149005#M454328</link>
    <description>James.&lt;BR /&gt;&lt;BR /&gt;Thank you very much its works.</description>
    <pubDate>Tue, 06 Jan 2009 16:15:35 GMT</pubDate>
    <dc:creator>VICBUR1507</dc:creator>
    <dc:date>2009-01-06T16:15:35Z</dc:date>
    <item>
      <title>Scrip error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149002#M454325</link>
      <description>Hi mates,&lt;BR /&gt;&lt;BR /&gt;Happy New Year For everybody!!&lt;BR /&gt;I have a problem when I try to run the following script:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------------------------------------------------&lt;BR /&gt;#  Created by: Victor Burguillos&lt;BR /&gt;#&lt;BR /&gt;# Description: Filters a syslog file searching for lines generated during the pass&lt;BR /&gt;# N days before today. The filter ommits the results from TODAY. The search starts&lt;BR /&gt;# with the registers generated yesterday&lt;BR /&gt;#--------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------------------------------------------------&lt;BR /&gt;# Parameters&lt;BR /&gt;#--------------------------------------------------------------------------------------&lt;BR /&gt;file_syslog=$1                                    # file to filter, including path&lt;BR /&gt;  cmd_egrep="/usr/bin/egrep"                      # file to egrep, including path&lt;BR /&gt;days_before=2                                     # number of days before since today&lt;BR /&gt;#--------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i=0&lt;BR /&gt;while [ $i -lt $days_before ]; do&lt;BR /&gt; date=$(perl -e "use POSIX;print strftime \"%b %e\",localtime time-($i*24*60*60);");&lt;BR /&gt; let i=i+1&lt;BR /&gt; &lt;BR /&gt; if [[ $i -eq 1 ]]; then &lt;BR /&gt;    search_filter=$date;&lt;BR /&gt;  else&lt;BR /&gt;    search_filter="$search_filter|$date";&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# This is the final result, an egrep with the dates as parameters, separated by an OR&lt;BR /&gt;$cmd_egrep "$search_filter" $file_syslog.&lt;BR /&gt;&lt;BR /&gt;The erro that show me when I run this scrip is the following:&lt;BR /&gt;Can't locate POSIX.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .) at -e line 1.&lt;BR /&gt;BEGIN failed--compilation aborted at -e line 1.&lt;BR /&gt;Can't locate POSIX.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .) at -e line 1.&lt;BR /&gt;BEGIN failed--compilation aborted at -e line 1.&lt;BR /&gt;egrep: Unknown error&lt;BR /&gt;&lt;BR /&gt;Any information about this???&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 06 Jan 2009 14:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149002#M454325</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2009-01-06T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scrip error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149003#M454326</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can't locate POSIX.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA- ...&lt;BR /&gt;&lt;BR /&gt;This says that the POSIX module can't be found in your Perl distribution.  Your version is old, although I believe it should have supported the module.  I would fetch and install a current one:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The Perl 5.8.8 version is rock-solid.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 06 Jan 2009 14:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149003#M454326</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-01-06T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scrip error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149004#M454327</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I download this version let me check and let you know when I will finish</description>
      <pubDate>Tue, 06 Jan 2009 14:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149004#M454327</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2009-01-06T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scrip error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149005#M454328</link>
      <description>James.&lt;BR /&gt;&lt;BR /&gt;Thank you very much its works.</description>
      <pubDate>Tue, 06 Jan 2009 16:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrip-error/m-p/5149005#M454328</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2009-01-06T16:15:35Z</dc:date>
    </item>
  </channel>
</rss>

