<?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 needs some modification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746088#M656227</link>
    <description>Hi Richard and Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I am not getting blank mails now. But i am not getting account lock notification either. &lt;BR /&gt;&lt;BR /&gt;Mails are queued up ans is showing up in mailq output.&lt;BR /&gt;&lt;BR /&gt;Kindly help!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sridhar</description>
    <pubDate>Mon, 31 Jan 2011 11:23:36 GMT</pubDate>
    <dc:creator>Sri123</dc:creator>
    <dc:date>2011-01-31T11:23:36Z</dc:date>
    <item>
      <title>Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746085#M656224</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Attached is a script that i have created for account lock notification to users.&lt;BR /&gt;&lt;BR /&gt;The script works fine, but it sends an empty mail even if the account is not locked.&lt;BR /&gt;&lt;BR /&gt;My requirement:&lt;BR /&gt;&lt;BR /&gt;Mail notification should come only if an account is locked but not otherwise.&lt;BR /&gt;&lt;BR /&gt;Please have a look at the script and provide a solution for this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance!&lt;BR /&gt;Sridhar</description>
      <pubDate>Mon, 31 Jan 2011 07:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746085#M656224</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-31T07:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746086#M656225</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Edit your mailer section as follows:&lt;BR /&gt;&lt;BR /&gt;if [ -s /tmp/lockout.txt ]&lt;BR /&gt;then&lt;BR /&gt; cat /tmp/lockout.txt | \&lt;BR /&gt; mailx -s " USER ACCOUNT STATUS NOTIFICATION " \&lt;BR /&gt; unixoraclealerts@mindscapeit.com datacenter@mindscapeit.com plasbof@mindscapeit.com mathewsk@mindscapeit.com utpals@mindscapeit.com padmanabanm@mindscapeit.com&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;rm /tmp/lockout.txt&lt;BR /&gt;&lt;BR /&gt;This will check to make sure the lockout.txt exists and has a size larger than zero bytes.</description>
      <pubDate>Mon, 31 Jan 2011 07:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746086#M656225</guid>
      <dc:creator>Richard Hepworth</dc:creator>
      <dc:date>2011-01-31T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746087#M656226</link>
      <description>(It would help if you had an indentation scheme for your if statements.)&lt;BR /&gt;&lt;BR /&gt;Richard solved it with that "-s" test on the file.&lt;BR /&gt;You should also remove lockout.txt at the start so you don't accumulate messages.&lt;BR /&gt;&lt;BR /&gt;You can also eliminate that evil cat by:&lt;BR /&gt;mailx -s "USER ACCOUNT STATUS NOTIFICATION" \&lt;BR /&gt;address ... &amp;lt; /tmp/lockout.txt</description>
      <pubDate>Mon, 31 Jan 2011 07:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746087#M656226</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-31T07:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746088#M656227</link>
      <description>Hi Richard and Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I am not getting blank mails now. But i am not getting account lock notification either. &lt;BR /&gt;&lt;BR /&gt;Mails are queued up ans is showing up in mailq output.&lt;BR /&gt;&lt;BR /&gt;Kindly help!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sridhar</description>
      <pubDate>Mon, 31 Jan 2011 11:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746088#M656227</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-31T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746089#M656228</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I am not getting blank mails now. But i am not getting account lock notification either. &lt;BR /&gt;&lt;BR /&gt;Posting your *modified* script would help diagnose your current problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 31 Jan 2011 13:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746089#M656228</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-31T13:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746090#M656229</link>
      <description>&amp;gt;&amp;gt;Mails are queued up ans is showing up in mailq output&lt;BR /&gt;&lt;BR /&gt;When you run the 'mailq' command what is the reason show for the mail being queued?&lt;BR /&gt;&lt;BR /&gt;It sounds as if sendmail isn't sending mail for some reason.&lt;BR /&gt;&lt;BR /&gt;Run: /usr/sbin/sendmail -q&lt;BR /&gt;&lt;BR /&gt;to try to empty the mail queue.&lt;BR /&gt;&lt;BR /&gt;Also check /var/adm/syslog/mail.log and look for any error messages.</description>
      <pubDate>Mon, 31 Jan 2011 14:19:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746090#M656229</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-01-31T14:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746091#M656230</link>
      <description>&amp;gt;I am not getting account lock notification either.&lt;BR /&gt;&lt;BR /&gt;Hmm.  If you were getting mail before, the changes shouldn't have stopped mail completely.&lt;BR /&gt;&lt;BR /&gt;Can you invoke mailx manually to try to send mail?  Any other configuration changes?</description>
      <pubDate>Mon, 31 Jan 2011 18:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746091#M656230</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-31T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script needs some modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746092#M656231</link>
      <description>&amp;gt;&amp;gt;Mails are queued up ans is showing up in mailq output&lt;BR /&gt; &lt;BR /&gt;mail.log will have the status of each email. Rather than use your script, test outgoing mail manually like this:&lt;BR /&gt; &lt;BR /&gt;sendmail -v name@myserver.com &amp;lt; /etc/hosts&lt;BR /&gt; &lt;BR /&gt;Then type: mtail&lt;BR /&gt;(which is the same as tail /var...mail.log) The error for this message will be shown.</description>
      <pubDate>Wed, 02 Feb 2011 02:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needs-some-modification/m-p/4746092#M656231</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-02-02T02:10:12Z</dc:date>
    </item>
  </channel>
</rss>

