<?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: Help - I am looking for a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770585#M74532</link>
    <description>Nick,&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;for FILE in `find /bi/parking -name iscan.lg`&lt;BR /&gt;do&lt;BR /&gt;elm -s "WhatEver" Nick@xxx.com &amp;lt; $FILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I think that should give you what you're looking for.&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Jul 2002 17:03:16 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2002-07-23T17:03:16Z</dc:date>
    <item>
      <title>Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770581#M74528</link>
      <description>that will look in sub directories for certain files and then email them to me.&lt;BR /&gt;&lt;BR /&gt;The pattern that I am looking for is dbname.lg.&lt;BR /&gt;&lt;BR /&gt;or better than mailing them, how about we back them up but this would require the renaming of the files as they are db backup log files with the same name.</description>
      <pubDate>Tue, 23 Jul 2002 16:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770581#M74528</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-07-23T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770582#M74529</link>
      <description># find &lt;DIRECTORY&gt; -name dbname.lg | xargs mailx user@domain.com&lt;BR /&gt;&lt;BR /&gt;will email you a list of dbname.lg files.&lt;BR /&gt;&lt;BR /&gt;Hai&lt;/DIRECTORY&gt;</description>
      <pubDate>Tue, 23 Jul 2002 16:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770582#M74529</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-07-23T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770583#M74530</link>
      <description>Almost but the directory structure is the problem&lt;BR /&gt;&lt;BR /&gt;I have the following files in these directories&lt;BR /&gt;/bi/parking/02/Feb/02/iscan.lg&lt;BR /&gt;/bi/parking/02/Feb/03/iscan.lg&lt;BR /&gt;/bi/parking/02/Feb/04/iscan.lg&lt;BR /&gt;&lt;BR /&gt;The script that you gave me comes back with a no message error.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 23 Jul 2002 16:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770583#M74530</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-07-23T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770584#M74531</link>
      <description>Sorry, I need the actuall files emailed to me not just the list.</description>
      <pubDate>Tue, 23 Jul 2002 16:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770584#M74531</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-07-23T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770585#M74532</link>
      <description>Nick,&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;for FILE in `find /bi/parking -name iscan.lg`&lt;BR /&gt;do&lt;BR /&gt;elm -s "WhatEver" Nick@xxx.com &amp;lt; $FILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I think that should give you what you're looking for.&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2002 17:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770585#M74532</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-07-23T17:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770586#M74533</link>
      <description>Hai and Pete, &lt;BR /&gt;thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Pete especially.  It is a little heavy on the system load with a zillion sendmail requests, but I think it works.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Nickd</description>
      <pubDate>Tue, 23 Jul 2002 17:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770586#M74533</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-07-23T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770587#M74534</link>
      <description>Or something with mailx for subject like&lt;BR /&gt;# for FILE in `find /dir -name "dbname.lg" -print` ; do&lt;BR /&gt;cat $FILE | mailx -s $FILE user@somewhere&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Tue, 23 Jul 2002 17:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770587#M74534</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-07-23T17:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770588#M74535</link>
      <description>Ok. this is a modified version.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;find &lt;DIRECTORY&gt; -name dbname.lg | while read FILE;&lt;BR /&gt;do &lt;BR /&gt;   mailx -s "$FILE" user@domain.com &amp;lt; $FILE&lt;BR /&gt;done&lt;/DIRECTORY&gt;</description>
      <pubDate>Tue, 23 Jul 2002 17:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770588#M74535</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-07-23T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770589#M74536</link>
      <description>Nick,&lt;BR /&gt;&lt;BR /&gt;You could concatenate all the files into one big file and just mail that one.  Would that work for you?&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 23 Jul 2002 17:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770589#M74536</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-07-23T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770590#M74537</link>
      <description>Nick,&lt;BR /&gt;&lt;BR /&gt;Or - for that matter - we could pursue your backup idea.  How and where do you want to back them up and what to you want done with the originals?&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 23 Jul 2002 17:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770590#M74537</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-07-23T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770591#M74538</link>
      <description>Here is script code to put all of the files into a single email.&lt;BR /&gt;/usr/lib/sendmail -t &amp;lt;&amp;lt; __EnD__&lt;BR /&gt;To: $TO&lt;BR /&gt;Cc: $CC&lt;BR /&gt;Bcc: $BCC&lt;BR /&gt;Subject: $SUBJECT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$(echo $BODY)&lt;BR /&gt;&lt;BR /&gt;$(find /work -name 'dbname.lg' -exec uuencode {} {} \;)&lt;BR /&gt;&lt;BR /&gt;__EnD__&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2002 17:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770591#M74538</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-23T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770592#M74539</link>
      <description>Why not use a single sendmail with multiple attachments?&lt;BR /&gt;&lt;BR /&gt;sendmail target@domain &amp;lt;&amp;lt; END&lt;BR /&gt;Subject: changed files &lt;BR /&gt;$(find . -name "pattern" -exec uuencode {} {} \;)&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2002 18:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770592#M74539</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2002-07-23T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770593#M74540</link>
      <description>Points to everyone - but Pete's solution was perfect.&lt;BR /&gt;&lt;BR /&gt;Thank you !!</description>
      <pubDate>Thu, 25 Jul 2002 15:58:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770593#M74540</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-07-25T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help - I am looking for a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770594#M74541</link>
      <description>Sorry, me again.&lt;BR /&gt;&lt;BR /&gt;I for some reason, can not get my head around this.&lt;BR /&gt;&lt;BR /&gt;It would be preferred if the files were concatenated to one big file.&lt;BR /&gt;&lt;BR /&gt;Everything I try, simply lists the files.&lt;BR /&gt;&lt;BR /&gt;The problem is my directory structure of ..../02/May/01/iscan.log  and ..May/02/iscan.lg &lt;BR /&gt;&lt;BR /&gt;for every day.&lt;BR /&gt;&lt;BR /&gt;My apologies for re-posting.</description>
      <pubDate>Thu, 26 Sep 2002 17:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-i-am-looking-for-a-script/m-p/2770594#M74541</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2002-09-26T17:39:57Z</dc:date>
    </item>
  </channel>
</rss>

