Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The CPAN is Perl's module repository and is where users should turn first for code ...

learn more… | top users | synonyms

0
votes
1answer
18 views

Spamassasin: Check mailbox for spam

How can I have spamassasin check a mail folder for spam and move it into a different one. I've been getting a lot of spam recently and started implementing bayesian classifiers. I moved a bunch into ...
1
vote
2answers
71 views

imapsync - Authentication failed

I've deployed many Google Apps accounts and have used imapsync a number of times to migrate accounts to Google Apps. This time however, no matter what I try imapsync refuses to work claiming my ...
1
vote
1answer
23 views

Perl: Log every execution of all scripts

Is there a way to log every execution of perl scripts on the complete server? I am investigating a possible security issue and therefore want to log every perl execution. Is something like this ...
1
vote
1answer
43 views

Postfix header_checks syntax (POSIX - Perl)

I am using header_checks in Postfix to rewrite my headers (for emails sent by Outlook through my server). Here is the part of the header I am trying to change : Received: from Raphasus ...
0
votes
2answers
49 views

How to print regex match

My problme is two fold. First is printing a regex match. The second is the actual regex. Problem 1: I'm trying to print the output of yum grouplist --verbose into a format that I can put into a ...
1
vote
1answer
47 views

Catalyst stderr going to the wrong log

I have several vhosts served by Apache 2.2.22 on a Debian Wheezy server. Some vhosts are Catalyst apps; all vhosts run with mod_fastcgi and mod_suexec. Each virtual host is configured to use a ...
0
votes
3answers
204 views

RedHat - Can't install a Perl module (CPAN)

I'm not able to install a perl module: [root@xxx]# cpan Module::Find [...] CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build C/CR/CRENZ/Module-Find-0.12.tar.gz Checking if your kit is ...
1
vote
1answer
42 views

Not able to execute cgi script getting muxserver_listen bind(): Permission denied

When i run a perl CGI script from browser it gives below error in apache error logs. It is not getting response from server. While i run my script from command prompt it works fine. I am using below ...
0
votes
0answers
35 views

Server serves old cache/memory/data with linkchecker agent

I'm using the perl script below to fill the cache/memory of the server by visiting all the links with the wget command and the linkchecker agent to check for broken links. When I run it it keeps ...
0
votes
1answer
87 views

Not able to run remote scipt from perl CGI script

I have created a program using perl CGI where i am calling my server script which is at remote location. For that i have used OpenSSH. But when i run this script from my terminal it works fine my ...
0
votes
0answers
35 views

Red Hat Network API connection

I'm creating a perl script that connects to the RHN, however I seem to be struggling. The code I have is this: #!/usr/bin/perl use Frontier::Client; my $HOST = 'xmlrpc.rhn.redhat.com'; my $client ...
2
votes
2answers
171 views

Mod Perl on RHEL 7

I for the life of me can not find the mod_perl package for RHEL 7. There is no package remotely called mod_perl, and google does not help. I am trying to get Redmine Git Hosting setup, but I need to ...
1
vote
1answer
63 views

Munin Postgres plugins: DBD::Pg not found

I'm trying to activate some of the Postgresql plugins for Munin. When I run munin-node-configure --suggest | grep postgres I get the following output: postgres_bgwriter | no | no [DBD::Pg ...
0
votes
1answer
20 views

Remove spoofing email notifications

I am using CentOS release 6.5 (Final) with MIMEdefang and I am getting spammed by someone that uses an e-mail spoofer. He sends alot of e-mails from random-user@mydomain to the same ...
0
votes
2answers
59 views

How do I uninstall/remove CPAN?

Is there a way to completely remove CPAN from my machine? I tried searching Google for a way to do this, but all of the results are focused around uninstalling the modules.
0
votes
1answer
38 views

masquerade an URL with proxy SSL or other methods

good day dear server experts I would like to be able to masquerade an URL, that is to keep the URL the user is entering when going to a page. For example: The user is entering at his browser: ...
1
vote
1answer
47 views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
0
votes
0answers
56 views

Problems with @INC when updating Perl form 5.10 to 5.18 on Centos

I am on Centos 6 (as root) with Perl 5.10, also with a lot of modules installed (using yum and CPAN). I've tried to upgrade Perl to 5.18 and now have some problems with @INC. I receive messages that ...
0
votes
0answers
39 views

SpamAssassin ASN Plugin

I've got spamassassin 3.4.0 setup to use Mail::SpamAssassin::Plugin::ASN. cpan confirms that it is installed, and dig confirms that I can get the ASN txt records from routeviews.org. My local.cf has ...
0
votes
0answers
101 views

XCOFF32 object files are not allowed in 64-bit mode while installing Crypt-SSLeay-0.65_02

I am installing a Perl package Crypt-SSLeay-0.65_02 in an AIX 6.1 system but while performing perl Makefile.PL getting the following error. The test suite can attempt to connect to public servers to ...
2
votes
0answers
69 views

Nginx & fcgiwrap, logging perl errors to error log

This is similar to this question, which got no responses: How to debug CGI over fcgiwrap/nginx How do I get perl errors to be automatically placed in the nginx error log? Right now, when there is any ...
0
votes
2answers
51 views

process works under strace but not normally

I have a process - a perl script - that does: while true check a POP account on a server on the lan process any email found write logs - messages found, actions taken, errors sleep ...
0
votes
1answer
307 views

“yum update” error. How to handle this?

I have an ec2 instance and I'm trying to update all packages. But the problem is when I execute "yum update" it shows the message: Transaction Check Error: file /usr/lib64/perl5/vendor_perl/Cwd.pm ...
0
votes
1answer
302 views

Cannot install Perl module Authen::Libwrap

I'm getting this error when trying to install. How can I install it? Webmin depends on it. [root@ip-172-31-15-65 home]# cpan Authen::Libwrap CPAN: Storable loaded ok (v2.20) Going to read ...
1
vote
2answers
384 views

Cpan module install fails

I am trying to install the Inline::MakeMaker Perl module (including Inline::C), but it fails when installing Inline::C (seems it cannot find "make", though make is installed under /usr/bin). This ...
0
votes
1answer
194 views

Downgrade Perl 5.16 to 5.14

I carelessly did yum update on my Amazon Linux AMI and updated Perl. Now my Movable Type install doesn't work. I did some google but could not find any solution except downgrading Perl to 5.14. ...
1
vote
2answers
141 views

monitorix 3.4.0 error: File 'monitorix.conf.path' was not found

I am running monitorix on CentOS using my apache server (as opposed to the built-in server) wit the following addition to the virtualhost: Alias /monitorix /usr/share/monitorix <Directory ...
1
vote
2answers
229 views

Installing perl-Time-HiRes on RHEL6.2 gives perl dependency error

I get the following when trying to install perl-Time-HiRes: host1:user1 > sudo yum install perl-Time-HiRes Loaded plugins: product-id, security, subscription-manager This system is not registered ...
0
votes
0answers
76 views

Can't get locally installed CPAN to read modules for installation on server with no internet

I've been wrestling with getting Bugzilla installed on an airgapped (absolutely no internet connection) server for months now. I've made many different attempts to install cpan, and strangely most of ...
1
vote
1answer
36 views

FC14 and yum dependancies

I've got my hands on an FC14 machine and I've been trying to get yum working on it over the past couple of days. The machine (which is an appliance) shipped with a conflicting package to ...
0
votes
3answers
63 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
0
votes
0answers
35 views

Failures from MySQLDump

I'm using the following command to dump a mysql installation to disk one DB at a time: mysqldump -ubkp_user -ppasswd -hdbserver.edu --single-transaction --flush-logs --master-data=2 --routines ...
0
votes
1answer
177 views

Perl - Using Net::SNMP::Interfaces to list interfaces of host

How could i get a list of all interfaces on a host with snmp, i am using. use Net::SNMP::Interfaces; my $interfaces = Net::SNMP::Interfaces->new(Hostname => 'localhost', ...
0
votes
1answer
119 views

How to access min/max/avg value in munin plugins?

I'm writing a munin plugin and display a GAUGE which displays a value which constantly increases. What I want to add to that plugin is a day/week/etc. average. I simply have to substract the day's ...
1
vote
0answers
190 views

Getting errors from local CPAN configuration on server with no internet

I've been wrestling with getting a local CPAN installed and configured on a CentOS server with no internet access. What I've done so far is this: 1) Made a full rsync of a CPAN directory onto an ...
0
votes
1answer
747 views

cpan perl module warning error

Trying to install multiple perl modules. I've already installed cpan and perl via yum on the centos 6 64bit box I get similar errors as below. CPAN.pm: Going to build G/GA/GAAS/URI-1.60.tar.gz ...
1
vote
2answers
147 views

How do I build and configure a local CPAN module repo?

I'm a sys admin administering three air gapped (zero internet access) supercomputers. On one of the supercomputers we need to run Bugzilla. I already built my own local yum repository, but now I ...
1
vote
2answers
180 views

AWStats process dies while processing large logs

I have really large nginx log files - as much as 250MB. When I have ran like 10 days of the month of log files - then the next daily logs would cause my awstats to die. Like so: ...
1
vote
3answers
365 views

How to get password prompt from ssh in Perl script

When I execute this from command line, I get prompted for joe's password (which is what I want): ssh -t 192.168.1.32 'scp joe@192.168.1.31:/etc/hosts /tmp' When I try to run the same command from ...
1
vote
2answers
364 views

Locating Rogue Perl Script

I've been trying to source the location of a perl script which is causing havoc on a server which I control. I'm also trying to find out exactly how this script was installed on the server - my best ...
3
votes
2answers
507 views

Debian Wheezy and SUID Perl

I just upgraded a Debian Lenny box to Wheezy, and found that suidperl is gone. Googling reveals that the upstream maintainers removed it; I need suidperl to run our mail installation, Open Webmail. ...
0
votes
1answer
171 views

nginx dynamic servername with regular expression doesn't work for co.uk

I'm trying to setup a nginx server which dynamically loads content from a folder for a domain. To do this I'm using regular expressions in the server name like so: server_name ...
0
votes
1answer
63 views

Safety of concurrent samba writes and perl move

I have samba (3.6.3-0.30.1-2920-SUSE-CODE11-x86_64) running on a SLES11 server which receives files from a Windows machine. The samba share is actually a NFS mount from an other server, and I need to ...
0
votes
0answers
57 views

Lemonldap::ng + OpenID error in try generate

I am trying to configure authentication by OpenID in lemonldap::ng with this When I try http://auth.example.com/openidserver/username, I see following error: Unable to load Net::OpenID::Server ...
0
votes
2answers
67 views

Optimizing Apache2 for high volume of small requests

I have a Perl script which returns a string, it's very simple and small. It is running on CentOS 6.4 with mod-prefork and mod_cgi via httpd 2.2.15 over SSL. It is the directory index, so when you ...
0
votes
2answers
864 views

install_driver(mysql) failed: Unable to get DBI state function. DBI not loaded

I installed OTRS from a rpm and the web installer /orts/installer.pl stops with: Error during AJAX communication. Status: error, Error: Internal Server Error Apache error_log ...
1
vote
1answer
94 views

Munin mysql plugins results inconsistent, with IPC::Sharelite store() error: Identifier removed

I've recently setup a munin-node on a CentOS server. All was working fine until I tried to add the apache plugin (which works fine). For some odd reason, the mysql plugins for munin that used to work ...
0
votes
0answers
281 views

Setting up Git, Gitweb, Gitolite on a Fedora 19 Server - Getting a '404 - No project found' message

All - I'm getting a 404 - No projects found trying to get a gitweb server up. Git and gitolite work fine, but I can't get projects to show up. Here's my setup: I'm working on getting Gitweb up on ...
0
votes
1answer
143 views

Cacti CLI tools: List present graphs per host

How can I list the graphs for a host, or at the very least the number of graphs? I'm thinking of a condition where I'd add more graphs depending on such output but all I see is to list available ...
-1
votes
1answer
45 views

perl script running only once on IIS 7 server

I am on Windows 7 (IIS 7). When I run a perl script it works fine once and returns the output to any browser. It takes input from html form and prints the input as text. Upon reload or second run, the ...