<?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: Email when script is executed .. this one .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556454#M28808</link>
    <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;My attempt at doing this would be a wrapper script e.g. Restart.sh which calls the real script (restart.sh):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;USERADDRESS="me@somewhere.com"&lt;BR /&gt;restart.sh $*&lt;BR /&gt;STATUS=$?&lt;BR /&gt;echo "restart.sh returned status ${STATUS} | mail ${USERADDRESS}&lt;BR /&gt;exit $STATUS&lt;BR /&gt;&lt;BR /&gt;You can obviously use the mail program of your choice (xmain,elm,etc.)&lt;BR /&gt;If you like you could actually name both scripts 'restart.sh' but have the wrapper earlier in the PATH and do an absolute path to the 'real' restart.sh with your wrapper.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Jul 2001 16:30:32 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-07-24T16:30:32Z</dc:date>
    <item>
      <title>Email when script is executed .. this one ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556453#M28807</link>
      <description>We have a restart script that a 3rd party software vendor has written. Is there a way that I can write a script that will email us when the restart script is ran. With out having to edit their script.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;RIchard&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2001 15:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556453#M28807</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-24T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Email when script is executed .. this one ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556454#M28808</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;My attempt at doing this would be a wrapper script e.g. Restart.sh which calls the real script (restart.sh):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;USERADDRESS="me@somewhere.com"&lt;BR /&gt;restart.sh $*&lt;BR /&gt;STATUS=$?&lt;BR /&gt;echo "restart.sh returned status ${STATUS} | mail ${USERADDRESS}&lt;BR /&gt;exit $STATUS&lt;BR /&gt;&lt;BR /&gt;You can obviously use the mail program of your choice (xmain,elm,etc.)&lt;BR /&gt;If you like you could actually name both scripts 'restart.sh' but have the wrapper earlier in the PATH and do an absolute path to the 'real' restart.sh with your wrapper.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2001 16:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556454#M28808</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-24T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Email when script is executed .. this one ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556455#M28809</link>
      <description>Hi Richard,&lt;BR /&gt;How does this restart script starts? If it is started by you then you can call that script from your script. &lt;BR /&gt;If it is starting automatically then you have to find out in which situation it restarts. &lt;BR /&gt;If this restart script starts at certain time and change certain files you can check that files and know that script is ran. &lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Tue, 24 Jul 2001 16:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-when-script-is-executed-this-one/m-p/2556455#M28809</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-07-24T16:33:48Z</dc:date>
    </item>
  </channel>
</rss>

