- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Perl installation and procmail
Operating System - Linux
1821588
Members
3634
Online
109633
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 07:43 PM
07-21-2005 07:43 PM
Perl installation and procmail
Does anyone know how I can check which perl installation procmail uses? And how I eventually can change this?
thanx in advance :-)
Anne-M
thanx in advance :-)
Anne-M
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2005 11:42 PM
07-22-2005 11:42 PM
Re: Perl installation and procmail
As far as I know, procmail is not a perl script. So it won't have any special handling for perl scripts.
If a perl script is called as
"/usr/local/bin/perl somescript.pl"
then "/usr/local/bin/perl" tells explicitly the location of the perl main binary, and so determines the perl installation to use.
If the script is called as
"perl somescript.pl"
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.
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)
:0 f
* ^Subject: printenv$
| printenv
If the perl script is called as "somescript.pl", then check the first line of the script. It should be something like
#!/usr/local/bin/perl
and it tells you what you need to know.
If you want to use another perl installation, just call the perl script in procmail file explicitly as:
/some/other/perl somescript.pl
If that isn't possible, change the first line of the perl script or PATH settings as appropriate.
If a perl script is called as
"/usr/local/bin/perl somescript.pl"
then "/usr/local/bin/perl" tells explicitly the location of the perl main binary, and so determines the perl installation to use.
If the script is called as
"perl somescript.pl"
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.
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)
:0 f
* ^Subject: printenv$
| printenv
If the perl script is called as "somescript.pl", then check the first line of the script. It should be something like
#!/usr/local/bin/perl
and it tells you what you need to know.
If you want to use another perl installation, just call the perl script in procmail file explicitly as:
/some/other/perl somescript.pl
If that isn't possible, change the first line of the perl script or PATH settings as appropriate.
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP