<?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: Mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318365#M683207</link>
    <description>&lt;!--!*#--&gt;HI (again) Allan:&lt;BR /&gt;&lt;BR /&gt;I should hasten to add that in the suggestion I made to wait until the last process completes before sending a mail notification, "last" assumed that all processes complete in order.  This is unlikely.&lt;BR /&gt;&lt;BR /&gt;We can wait for all processes by simply doing:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;for s in $servers &lt;BR /&gt;do&lt;BR /&gt;  cd /d/$s/&lt;BR /&gt;  nohup ./cbo.install &amp;lt; /dev/null &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;wait #...for all children...&lt;BR /&gt;echo "Process complete" | mailx -s "Done with XYX" Allan.m@bar.com&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 05 Dec 2008 14:31:52 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-12-05T14:31:52Z</dc:date>
    <item>
      <title>Mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318362#M683204</link>
      <description>I do a deployment each week in the following fashion using a for loop : &lt;BR /&gt;&lt;BR /&gt;===================&lt;BR /&gt;for s in $servers                                   &lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;     cd /d/$s/&lt;BR /&gt;&lt;BR /&gt;     nohup ./cbo.install &amp;lt; /dev/null &amp;amp;&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;=================&lt;BR /&gt;&lt;BR /&gt;how do I make it mail me a notification once its done.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Fri, 05 Dec 2008 01:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318362#M683204</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2008-12-05T01:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318363#M683205</link>
      <description>You could add:&lt;BR /&gt;echo "Process complete" | mailx -s "Done with XYX" Allan.m@bar.com</description>
      <pubDate>Fri, 05 Dec 2008 03:03:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318363#M683205</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-05T03:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318364#M683206</link>
      <description>Hi Allan:&lt;BR /&gt;&lt;BR /&gt;If you want to wait until the last process is done before sending your notification, do:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;for s in $servers &lt;BR /&gt;do&lt;BR /&gt;  cd /d/$s/&lt;BR /&gt;  nohup ./cbo.install &amp;lt; /dev/null &amp;amp;&lt;BR /&gt;  LAST=$!&lt;BR /&gt;done&lt;BR /&gt;wait ${LAST}&lt;BR /&gt;echo "Process complete" | mailx -s "Done with XYX" Allan.m@bar.com&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Dec 2008 14:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318364#M683206</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-05T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318365#M683207</link>
      <description>&lt;!--!*#--&gt;HI (again) Allan:&lt;BR /&gt;&lt;BR /&gt;I should hasten to add that in the suggestion I made to wait until the last process completes before sending a mail notification, "last" assumed that all processes complete in order.  This is unlikely.&lt;BR /&gt;&lt;BR /&gt;We can wait for all processes by simply doing:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;for s in $servers &lt;BR /&gt;do&lt;BR /&gt;  cd /d/$s/&lt;BR /&gt;  nohup ./cbo.install &amp;lt; /dev/null &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;wait #...for all children...&lt;BR /&gt;echo "Process complete" | mailx -s "Done with XYX" Allan.m@bar.com&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Dec 2008 14:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail/m-p/4318365#M683207</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-05T14:31:52Z</dc:date>
    </item>
  </channel>
</rss>

