<?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: calling script from .forward in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-script-from-forward/m-p/2730673#M836178</link>
    <description>Works fine for me.&lt;BR /&gt;Except I had to replace&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;with &lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;in my script.&lt;BR /&gt;&lt;BR /&gt;Have you checked the mail logfile ? This is usually /var/adm/syslog/mail.log, but if not there look in /etc/syslog.conf for the mail.debug entry.&lt;BR /&gt;&lt;BR /&gt;Is the postmaster getting any bounced mail which originates from you ?</description>
    <pubDate>Fri, 24 May 2002 07:02:21 GMT</pubDate>
    <dc:creator>Graham Cameron_1</dc:creator>
    <dc:date>2002-05-24T07:02:21Z</dc:date>
    <item>
      <title>calling script from .forward</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-script-from-forward/m-p/2730672#M836177</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I'd like to execute a script whenever an email comes to an account:&lt;BR /&gt;&lt;BR /&gt;here is my .forward file:&lt;BR /&gt;&lt;BR /&gt;|/home/dev/perlScriptTest.pl&lt;BR /&gt;&lt;BR /&gt;Here is my perlScriptTest.pl&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;open LOG, "&amp;gt;/home/dev/logfile" or die "Can't create logfile: $!";&lt;BR /&gt;&lt;BR /&gt;print LOG "test";&lt;BR /&gt;&lt;BR /&gt;For some reason, when I send email to the account, perl script is never executed?&lt;BR /&gt;&lt;BR /&gt;If I execute script from the command line, "logfile" is successfully created.&lt;BR /&gt;&lt;BR /&gt;Any ideas why&amp;gt;?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;    &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 May 2002 20:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-script-from-forward/m-p/2730672#M836177</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-05-23T20:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: calling script from .forward</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-script-from-forward/m-p/2730673#M836178</link>
      <description>Works fine for me.&lt;BR /&gt;Except I had to replace&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;with &lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;in my script.&lt;BR /&gt;&lt;BR /&gt;Have you checked the mail logfile ? This is usually /var/adm/syslog/mail.log, but if not there look in /etc/syslog.conf for the mail.debug entry.&lt;BR /&gt;&lt;BR /&gt;Is the postmaster getting any bounced mail which originates from you ?</description>
      <pubDate>Fri, 24 May 2002 07:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-script-from-forward/m-p/2730673#M836178</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2002-05-24T07:02:21Z</dc:date>
    </item>
  </channel>
</rss>

