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

1
vote
1answer
108 views

Why my date command changed and how to restore the default one?

I'm having a problem in a RHEL 5.3 after I tried installing Perl Power Tools. Everything was working fine until I tried installing that package by hand (the server has no access to internet). At ...
1
vote
1answer
1k views

Errors when running cron: grandchild #10010 failed with exit status 2: 1 Time(s)

In recent weeks I have seen this type of error many times on my debian 6 servers. I have seen different exit status, 1, 2, 25, 255 Errors when running cron: grandchild #10010 failed with exit ...
1
vote
1answer
768 views

Ubuntu Upgrade, Perl Version Broke ZImbra

Kind of in a bind here, since I heard about the bash bugs last night I decided on upgrading all off my server, not just the packages but the complete OS, it worked fine on all my servers, except my ...
1
vote
3answers
8k 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
199 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 ...
1
vote
1answer
174 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 http://routeviews.org. My local....
1
vote
2answers
223 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 ...
1
vote
2answers
3k 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 ...
1
vote
2answers
542 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 /usr/...
1
vote
2answers
716 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: /usr/lib/cgi-bin/...
1
vote
2answers
708 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 ...
1
vote
2answers
51 views

Perl regex expression

I have the following string produced by a server log file. I am using Simple Event Correlator (which uses perl regex) to manipulate lines: 18:37:31 643.65.123.123 []sent /home/mydomain/public_html/...
1
vote
2answers
3k views

Perl File::Copy module installation fails

I have Perl version version 5.10.1 installed in my CentOS6.0 machine. I need to install TWiki and it needs some perl modules (see this URL) http://twiki.org/cgi-bin/view/TWiki/TWikiInstallationGuide ...
1
vote
2answers
4k views

Configure Perl DBI and DBD in Linux

I am new to Perl and I work in a Linux OEL 5x server. I am trying to configure the Perl DB modules for Oracle connectivity (DBD and DBI modules). Can anyone help me out in the installation procedure? ...
1
vote
1answer
109 views

Using environment variables to keep track of processes launched by cron

My question: I have an if statement in perl where I attempt to detect via environment variables at the time of launching the perl script whether it was launched via a cron job or via normal execution ...
1
vote
1answer
1k views

BugZilla XML RPC Interface

I am attempting to setup BugZilla to receive but reports from another system using the XML-RPC interface. BugZilla works fine on its own with its own interface. When I attempt to test the XML-RPC ...
1
vote
2answers
5k views

Centos 6, apache mod_perl configured but not working

I just received today my dedi server access, I installed apache: yum install httpd After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my ...
1
vote
1answer
468 views

How to listen for SNMP Traps from SNMP enabled network devices?

I just began working for my school's networking department, and I was assigned a project to develop a program to listen for traps from SNMP network devices. The device I am testing with an Access ...
1
vote
1answer
3k views

How to grep string in perl [closed]

How to grep the string in perl. Variable sessionWeb contains a web page html code. I want to grep "active Sessions" from this and want to print as below. For example the line in the web page will be ...
1
vote
1answer
499 views

Nginx directory aliasing incorrectly passing to fcgi

I have a website virtual host, example.com, which is statically served out of /home/erealms/www. However, the website runs through a series of perl scripts, which are located in various directories. ...
1
vote
1answer
98 views

weird behavior of perl's Compress-Zlib? [closed]

I'm been going crazy on this one... I've been using the gzflush() function for years in my collectl tool and recently noticed something very unusual with it on debian. I'm actually thinking it's ...
1
vote
1answer
2k views

bastille cannot find Curses.pm

i am running centos 6 and installed the rpm version of bastille, it cannot find Curses.pm, however perl-Curses is installed and somehow even perl cannot find it. [root@server ~]# /usr/sbin/bastille -...
1
vote
1answer
318 views

SSH executed from Perl get SIGSTOP instantly

I have some perl script which executes some commands on remote gerrit server via SSH. It's running on a Debian lenny virtual machin. During several monthes it was executed in the following way: ./...
1
vote
2answers
3k views

PERL+mysql: undefined symbol: mysql_init

I've updated mysql (client+server+dev) from the rpms available on mysql.com. rpm -i MySQL-server-5.5.14-1.linux2.6.x86_64.rpm rpm -i MySQL-client-5.5.14-1.linux2.6.x86_64.rpm rpm -i MySQL-devel-5.5....
1
vote
1answer
1k views

HAProxy perl plugin and Net-SNMPd on Ubuntu 10.04

I am trying to monitor HAProxy states through SNMP. There is a haproxy.pl file for use with NetSNMP which I've copied and set up in snmpd.conf according to /usr/share/doc/haproxy/contrib/netsnmp-perl/...
1
vote
1answer
4k views

How do I configure nginx's embedded Perl to use Perl modules?

I have configured nginx to use a specific version of Perl. $ sudo /opt/nginx/sbin/nginx -V nginx version: nginx/0.8.54 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-46) TLS SNI support disabled ...
1
vote
1answer
2k views

Reliable file copy (move) process - mostly Unix/Linux

Short story : We have a need for a rock-solid reliable file mover process. We have source directories that are often being written to that we need to move files from. The files come in pairs - a big ...
1
vote
1answer
2k views

How can I enable IIS to run Perl scripts?

we're trying to get awstats up and running on our IIS6 server. awstats is running fine and generating output and all that jazz... no problem there. When trying to change the selected month/year in ...
1
vote
1answer
250 views

Shared hosting: using a custom Perl version for CGI

I'm trying to revamp some nasty old sites on a cheap shared host using one of these new-fangled Perl web frameworks (Dancer). I had module dependency problems with the existing Perl install (5.6.1) ...
1
vote
1answer
1k views

mod_fcgid, perl script output going to apache error_log

I'm trying to get an old Perl script running again after installing mod_fcgid. I had to install mod_fcgid for a new client, but it seems to have broken some of my other cgi scripts. When going to ...
1
vote
1answer
964 views

Setting environment variables for a service without a login shell on Debian

I have created a linux service that runs as a deamon (and gets started from /etc/init.d/X). I need to set some environment variables that can be accessed by the application. Here's the scenario. The ...
1
vote
1answer
122 views

How do delivery receipt in horde works?

I want to send emails (using perl) using postfix MTA with a delivery receipt like horde does. Some have any idea?
1
vote
1answer
2k views

Need Help getting perl module DBD::mysql installed for bugzilla on RedHat

Hi everyone I am having some issues getting Bugzilla setup, I have the software on the server and am trying to get the pre-rec's setup. I am using RedHat 4.1.2-42. I have all of the required perl ...
1
vote
1answer
295 views

Why am I getting blank error messages in my Apache error log?

I am running Apache 2.2 on 64bit Windows Server 2008 Std edition with ActivePerl 5.8.9. My error log is filling up with blank error messages like these: [Wed Mar 31 14:08:31 2010] [error] [client ...
1
vote
1answer
534 views

Apache 2 - I have webmin running on port 10000…I want it to be accessed the normal HTTP port (80)

Currently I am doing this with the config. NameVirtualHost * <VirtualHost *> ServerName testsite.org ServerAdmin webmaster@testsite.org DocumentRoot /var/www/ &...
1
vote
1answer
619 views

“perl.exe *32” not releasing memory when spawned by Apache 2.2 on Windows server 2008 64bit

We have a web application that traditionally ran on Windows Server 2003 Std. Ed. 32bit in Apache2.2 with perl 5.8. I am attempting to migrate it to a Windows Server 2008 Std. Ed. 64bit in Apache2.2 ...
1
vote
3answers
804 views

Why does psql attempt to connect with a different username when run from a Perl script

I have a bunch of Perl scripts that have recently stopped working. I have narrowed the problem down to this: when I connect to a postgresql database from a perl script, it attempts to use the wrong ...
1
vote
1answer
98 views

automatically click cancel button while i shutdown though program in perl

I wrote program to shutdown system automatically in PERL , while shutdown if we open any file the windows asked that the file will save or cancel , my aim is cancel button automatically clicked and ...
1
vote
2answers
943 views

Perl script works with Apache piped logs but not Python script

I need to port my Perl log handling script to Python. Here is a simple example of a Perl script I can use: #!/usr/local/bin/perl $|=1; # Use unbuffered output while(<>) { system("beep"); } ...
1
vote
0answers
31 views

Openldap configuration on RHEL 6.6 client

We have a shell script which runs perl program to connect to LDAP server and make entries. This is the only script which uses ldap. This server is hosting all batch related files and run batch jobs ...
1
vote
0answers
20 views

Awstats shows no operating system

I have AWStats running for two applications and for both no operating system is displayed. Instead only "unknown" is shown (100%). All the other stats are interpreted correctly, only the operating ...
1
vote
1answer
40 views

ssh gatekeeper script and system calls

I'm using the openssh gatekeeper script from calomel.org to make a semblance of two-factor authentication. I've tried to use a curl to the localhost to send a randomly generated string via text ...
1
vote
0answers
38 views

Unable to query DKIM because of DNS timeout

I run dkimproxy to sign outbound email and verify inbound email. Since a while, I am experiencing the following permanent problem. The dkimproxy service is unable to query the DNS. Each and every ...
1
vote
0answers
21 views

Building old Perl from source - How to add math library?

When I make Perl 5.10.1 I get some errors, I found some related threads that stated: The error messages are from the linker, not from the compiler. You should get away by placing a -lm at the end ...
1
vote
0answers
10 views

Clean way to run Perl CGI script on Mac?

I'm trying to run a server to serve a Perl file on my Mac, but I'd like to not use Apache and its CGI. Is there a clean way, a la Python's SimpleHTTPServer, to run Perl without mucking with Apache?
1
vote
0answers
44 views

perl smokeping false packet loss (solved)

I'm getting false packet loss from time to time. The period lasts about month, you can see it on graph. We checked it using the same fping command and got no loss at all. So maybe were are hosts limit ...
1
vote
0answers
75 views

HLS loadtest with VLC without GUI

Im out to test how many connections my HLS stream can handle. So i think that VLC without GUI can be usefull to do the work. But the problem is that i'm not manage to start the stream without ...
1
vote
1answer
220 views

Apache environment variables for CGI not setting

I am trying to set my environment variables for the Apache webserver as it is not the correct Perl package. I followed the recommendation of one of the answers on Server Fault for updating the httpd ...
1
vote
0answers
58 views

Automatically add/remove entry to/from /etc/hosts when enabling/disabling apache2 virtualhost

When I create virtualhosts, I almost always forget to add an entry to /etc/hosts until I've attempted to check the site in a web browser and moaned about the oversight. What I want to do is modify ...
1
vote
0answers
120 views

Perl doesn't work without warnings in CGI

For some reason I can't get a perl script to run in the cgi-bin folder. I haven't made these files and we've uploaded them to another server and they work fine. However I've used the following test....