<?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 sendmail not working from script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sendmail-not-working-from-script/m-p/4310435#M34489</link>
    <description>I have a small script like this&lt;BR /&gt;========&lt;BR /&gt;#This script is used for checking the console connectivity to the following servers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exgld180c=155.248.115.106&lt;BR /&gt;exgld178c=155.248.115.177&lt;BR /&gt;exgld179c=155.248.115.178&lt;BR /&gt;&lt;BR /&gt;for i in $exgld180c $exgld178c $exgld179c&lt;BR /&gt;  do&lt;BR /&gt;        if ping ${i} -c 2 -w 15 &amp;gt;/dev/null&lt;BR /&gt;        then&lt;BR /&gt;        echo "Console IP still available for ${i} at `date`"&amp;gt;&amp;gt;/opt/local/unix/logs/exgld_console_ipcheck.log&lt;BR /&gt;        else&lt;BR /&gt;        echo "Console IP NOT available now for ${i} at `date`"&amp;gt;&amp;gt;/opt/local/unix/logs/exgld_console_ipcheck.log&lt;BR /&gt;        echo "Console IP NOT available now for ${i}" |sendmail t.kumar@alcoa.com gidunixsupport@alcoa.com&lt;BR /&gt;        fi&lt;BR /&gt;  done&lt;BR /&gt;=====&lt;BR /&gt;&lt;BR /&gt;I get the sendmail notification if i run that script manually. But i am not receiving alert while scheduled through cron.&lt;BR /&gt;&lt;BR /&gt;So far restarted the sendmail ; also added #!/bin/bash and #!/bin/ksh at the begining of the script and no change.  Any suggetions</description>
    <pubDate>Thu, 20 Nov 2008 20:09:34 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2008-11-20T20:09:34Z</dc:date>
    <item>
      <title>sendmail not working from script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sendmail-not-working-from-script/m-p/4310435#M34489</link>
      <description>I have a small script like this&lt;BR /&gt;========&lt;BR /&gt;#This script is used for checking the console connectivity to the following servers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exgld180c=155.248.115.106&lt;BR /&gt;exgld178c=155.248.115.177&lt;BR /&gt;exgld179c=155.248.115.178&lt;BR /&gt;&lt;BR /&gt;for i in $exgld180c $exgld178c $exgld179c&lt;BR /&gt;  do&lt;BR /&gt;        if ping ${i} -c 2 -w 15 &amp;gt;/dev/null&lt;BR /&gt;        then&lt;BR /&gt;        echo "Console IP still available for ${i} at `date`"&amp;gt;&amp;gt;/opt/local/unix/logs/exgld_console_ipcheck.log&lt;BR /&gt;        else&lt;BR /&gt;        echo "Console IP NOT available now for ${i} at `date`"&amp;gt;&amp;gt;/opt/local/unix/logs/exgld_console_ipcheck.log&lt;BR /&gt;        echo "Console IP NOT available now for ${i}" |sendmail t.kumar@alcoa.com gidunixsupport@alcoa.com&lt;BR /&gt;        fi&lt;BR /&gt;  done&lt;BR /&gt;=====&lt;BR /&gt;&lt;BR /&gt;I get the sendmail notification if i run that script manually. But i am not receiving alert while scheduled through cron.&lt;BR /&gt;&lt;BR /&gt;So far restarted the sendmail ; also added #!/bin/bash and #!/bin/ksh at the begining of the script and no change.  Any suggetions</description>
      <pubDate>Thu, 20 Nov 2008 20:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sendmail-not-working-from-script/m-p/4310435#M34489</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-11-20T20:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail not working from script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sendmail-not-working-from-script/m-p/4310436#M34490</link>
      <description>Even if your script hash the shell defined, the PATH environment variables are not. Use the absolute path for all commands in your script, specially /usr/sbin/sendmail.</description>
      <pubDate>Thu, 20 Nov 2008 21:12:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sendmail-not-working-from-script/m-p/4310436#M34490</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-11-20T21:12:33Z</dc:date>
    </item>
  </channel>
</rss>

