<?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 Perl installation and procmail in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-installation-and-procmail/m-p/3588362#M103771</link>
    <description>Does anyone know how I can check which perl installation procmail uses? And how I eventually can change this?&lt;BR /&gt;&lt;BR /&gt;thanx in advance :-)&lt;BR /&gt;&lt;BR /&gt;Anne-M</description>
    <pubDate>Fri, 22 Jul 2005 02:43:39 GMT</pubDate>
    <dc:creator>Anne-Marte Krogsrud</dc:creator>
    <dc:date>2005-07-22T02:43:39Z</dc:date>
    <item>
      <title>Perl installation and procmail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-installation-and-procmail/m-p/3588362#M103771</link>
      <description>Does anyone know how I can check which perl installation procmail uses? And how I eventually can change this?&lt;BR /&gt;&lt;BR /&gt;thanx in advance :-)&lt;BR /&gt;&lt;BR /&gt;Anne-M</description>
      <pubDate>Fri, 22 Jul 2005 02:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-installation-and-procmail/m-p/3588362#M103771</guid>
      <dc:creator>Anne-Marte Krogsrud</dc:creator>
      <dc:date>2005-07-22T02:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl installation and procmail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-installation-and-procmail/m-p/3588363#M103772</link>
      <description>As far as I know, procmail is not a perl script. So it won't have any special handling for perl scripts.&lt;BR /&gt;&lt;BR /&gt;If a perl script is called as&lt;BR /&gt;  "/usr/local/bin/perl somescript.pl"&lt;BR /&gt;then "/usr/local/bin/perl" tells explicitly the location of the perl main binary, and so determines the perl installation to use.&lt;BR /&gt;&lt;BR /&gt;If the script is called as &lt;BR /&gt;  "perl somescript.pl"&lt;BR /&gt;then procmail takes the first perl instance that's found in PATH. Note that PATH might not be the same as the PATH of your normal session: best way to check is to make a simple procmail script that outputs the environment variables. &lt;BR /&gt;&lt;BR /&gt;This quick and dirty script would replace the contents of any email which has only the word "printenv" at the subject with a printenv listing: (untested, use at your own risk)&lt;BR /&gt;&lt;BR /&gt;:0 f&lt;BR /&gt;* ^Subject: printenv$&lt;BR /&gt;| printenv&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the perl script is called as "somescript.pl", then check the first line of the script. It should be something like&lt;BR /&gt;  #!/usr/local/bin/perl&lt;BR /&gt;and it tells you what you need to know.&lt;BR /&gt;&lt;BR /&gt;If you want to use another perl installation, just call the perl script in procmail file explicitly as:&lt;BR /&gt;  /some/other/perl somescript.pl&lt;BR /&gt;&lt;BR /&gt;If that isn't possible, change the first line of the perl script or PATH settings as appropriate.</description>
      <pubDate>Sat, 23 Jul 2005 06:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-installation-and-procmail/m-p/3588363#M103772</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-07-23T06:42:39Z</dc:date>
    </item>
  </channel>
</rss>

