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
3answers
1k views

Running nph-script.cgi keeps outputting Server details at the end

I am running a nph-script.cgi on my server. The server keeps adding HTTP/1.1 200 OK Date: Thu, 05 Nov 2009 02:28:53 GMT Server: Apache/2.2.8 (Ubuntu) PHP/5.2.8-1hardy~ppa1 with ...
0
votes
0answers
9 views

How to get root CA certificate in windowsserver 2012

I am trying to connect to W2k12 server AD from my local unix box using net::ldaps. There seems to be CA certificate issue, as openssl s_client -connect AD.server.ip:636 is failing: [root@rh64-0 ~]# ...
0
votes
1answer
100 views

Gentoo emerge packages conflict

I'm trying to install git on my Gentoo webserver. The command "emerge dev-vcs/git" returns the following result : * IMPORTANT: 12 news items need reading for repository 'gentoo'. * Use eselect ...
0
votes
1answer
13 views

webserver config for index.cgi on perl apps [closed]

Does anyone know how I can change a perl app config on open shift to read an index.cgi without having to explicitly go to the URL like it does with index.pl? I thought I could do it with: ...
0
votes
1answer
1k 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 ...
2
votes
2answers
75 views

Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed

So, I'm new to CGI / Perl, I'm trying to move a perl-based web app to a new server. My new server is CentOS 7, which runs Apache HTTPD 2.4.6. I'm trying to get a basic Perl CGI working from an HTTP ...
1
vote
3answers
13k views

Where to get RRDs.pm?

I'm trying to set up opsview (Nagios) on a CentOS 5 server running perl 5.8.9 When I try to start it, it can't find RRDs.pm. Turns out, neither can I. It's not on CPAN and I've been unable to ...
2
votes
0answers
19 views

How to specify Perl version for apache2 mod_cgi? [migrated]

I have installed additional versions of Perl on a Fedora 21 system. On the PATH, my custom Perl (5.10.0) has priority over the distro's default Perl (5.18.4) user$ perl -v > This is perl, v5.10.0 ...
2
votes
1answer
1k views

Calculate average of every 5 samples with rrdtool or other languages

I want to make an average of 5 samples and calculate a single value: Current output - I put resolution of 5 minutes but receive 5 samples: $ rrdtool fetch file.rrd AVERAGE -r 300 --start 1200000000 ...
-1
votes
0answers
17 views

Perl module installation issue on windows

I need help to install perl stick module on windows, I even tried Cpan but I get the same error due to strict module, can anyone help me? I am using perl 5, version 20, subversion 2 (v5.20.2) built ...
0
votes
1answer
101 views

Mass disable customers in OTRS

The problem is about OTRS customers. I can't use an external customer backend, so I want to update the customer DB via CSV files. I already wrote a script to add new Customers via ...
2
votes
2answers
944 views

Run a perl script as a windows 7 service

I have a perl script which is compiled using pp, to be run as a windows service on windows 7 machines. I looked at the thread http://www.perlmonks.org/index.pl?node%5Fid=230377 but of little use ...
0
votes
1answer
880 views

How can I forward email to a perl script on Linux?

I would like all mail sent to a particular alias on a Linux machine to be processed by a perl script but sendmail is giving me a "Service unavailable" error and I don't understand what I'm missing. I ...
1
vote
2answers
9k views

IIS 7.5 on Windows Server 2008 R2 refusing to create PASSIVE MODE FTP connections

I'm attempting to get an FTP client written in perl to transfer files from an IIS 7.5 FTP server using passive mode. I've configured the FTP server as per instructions and have also configured ...
1
vote
1answer
22 views

How to customize munin alert message text

So, I use munin to monitor a couple hundred servers and I love it. I am trying to tweak the alert text to look a little different however, and I'm not understanding how to get it to do what I want. I ...
0
votes
0answers
36 views

CentOS7.1 missing many perl rpms

I just install a Centos7.1! It seems to be missing soo many perl rpms. Ex: perl-PerlIO-gz, perl-DBD-Sybase... I can't seem to find them in any repo. Any ideas? Thanks,
1
vote
1answer
97 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 ...
1
vote
1answer
55 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 ...
0
votes
3answers
523 views

Proper acting when a process is consuming 100% time of CPU

On several machines I have a problem with a process that is using 100% time of a CPU. USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 85740 100.0 0.2 34668 ...
1
vote
3answers
2k 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 ...
0
votes
1answer
309 views

Webmin API functions via XML-RPC getting error unknown RPC type [closed]

From one of my development server i am trying to Create a new Unix user in webmin , through XML-RPC calls.The base URL is "http://yourserver:10000/xmlrpc.cgi". Here the yourserver is not the ...
1
vote
2answers
261 views

HTML pages getting 'cut off' CGI/Perl

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by ...
0
votes
1answer
159 views

How to consistently get Apache version in Perl for comparison against configuration requirement list

How can I extract the Apache version number? I would like to then use this number to compare it against a value in a configuration requirement file for a minimum Apache version as part of an ...
1
vote
2answers
9k views

Can't locate Config/IniFiles.pm in @INC (@INC contains:

mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM's snapshot feature to do so. Following are the error I had when I tried to execute the mylvmbackup perl script. How can I ...
1
vote
1answer
41 views

how to view all process details from ps –ef command

hi all I am using the ack.pl in my bash script to search IP's in the Linux OS only for example , and only to show the problem I will give here short example # ( ./ack.pl -Q -a -l --max-count=1 ...
0
votes
1answer
227 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 ...
0
votes
0answers
33 views

Where does Apache get the value for Perl @INC?

I run Apache2 server on Debian, user is set www-data and also group is www-data. When I run Perl CGI-scripts I noticed that their @INC differs from scripts I run from command line as same ...
0
votes
0answers
31 views

Server exploited, perl script sending spam [duplicate]

my server with centos 6 is sending massive spam. Before move the backup on the new clean server, I must understand what is going on. let's read some logs mail log Jan 10 14:21:00 vps63495 ...
0
votes
0answers
9 views

Perl CGI loging everything in error_log using virtualhosts

I have a problem with Apache and Perl CGI (I'm not using mod_perl) I'm using virtual hosts for different sites and one of them is running perl cgi scripts, even when the virtual host has the ...
0
votes
3answers
599 views

How to optimize mysql insert using perl?

ive got log parser on perl and it uses mysql insert or update command on every line. Like: Log line 1: 2012-12-01 12:12 [perld] Hello world #1 .... Log line N: 2012-12-01 12:NN [perld] Hello world #N ...
0
votes
1answer
341 views

GnuPG::Interface fails to install on CentOS 7

I'm trying to install a CentOS 7 server to run Request Tracker. By running make testdeps I can see all missing packages and make fixdeps is supposed to install this packages. There is one package that ...
1
vote
5answers
3k views

Silent and scripted install of CPAN and Perl modules?

I need to install CPAN and some Perl modules automatically in a Scientific Linux (RHEL) installation script. Unfortunately the specific modules I want (at least one of them) cannot be found as RPM:s ...
1
vote
1answer
81 views

postfix parameter default_privs

I have set default_privs=myuser in main.cf, which is a perl script, executed in the context of this user. In the perl script I added some debug to print out the user: my $exec_username = ...
0
votes
1answer
266 views

Perl + Catalyst hosting only possible on a (pricey) VPS?

I'm about to set up a website with a Wiki and was looking at MojoMojo as a more user friendly alternative to MediaWiki. The problem however is that it runs on Perl and Catalyst framework, for which ...
2
votes
2answers
383 views

Request tracker: Auto assign owner on reply

We recently migrated from Spiceworks to RT4. In Spiceworks, you could set it to where it auto assigns a ticket upon an tech's reply or use email tags to assign it to another tech. Is there a way to ...
1
vote
1answer
456 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 ...
0
votes
1answer
41 views

amavis log email hash

I want to log a hash value of all emails handled by my mail-server. I found in amavis README.customize.gz the following line: The substitution text for the following simple macros is built-in: [...] ...
0
votes
1answer
31 views

Perl Section in Apache config don't work

I have installed mod_perl on my server via yum to make use of Perl sections in the Apache config. I'm running Apache 2.2 on CentOS 6. I installed the necessary Perl modules (DB2 driver mainly) via ...
-1
votes
1answer
179 views

Can not install Net::SSH2 module Perl

I am getting the following log while trying to install Net::SSH2 module in my debian machine. I don have libssh2-dev installed but still Im getting this error. also it says "Couldn't find your C ...
1
vote
5answers
5k views

Removing perl module installed with cpanm

I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to my ...
1
vote
2answers
2k 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? ...
0
votes
1answer
56 views

perl print ldap tree hierarchy at command line

Is there a way to print a tree like view of an existing ldap directory at the command line with perl? Like the 'tree' command does with files/directories, but for ldap?
0
votes
0answers
30 views

Apache2: upload restarts over and over

We are using different upload scripts with Perl-Module CGI for our CMS and have not encountered such a problem for years. Our customer's employees are not able to get a successful download. No matter ...
3
votes
1answer
93 views

increase file size for log files from scripts started from postfix

I am using Postfix to run a script whenever a message is sent to a specific address. The script is a Perl script and it writes a log to a file using Log4perl. The log file is being rotated on a ...
1
vote
0answers
23 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 ...
0
votes
2answers
2k views

Apache 2.4 replies with “403 Forbidden” for a CGI script, my configuration looks ok

I installed a CGI script on a fresh installation of Apache 2.4 on Ubuntu server 14.04. Apache keeps replying with 403 Forbidden also if, to me, the configuration file is ok. The CGI is the Monitorix ...
-1
votes
2answers
517 views

Install Crypt::SSLeay Debian [closed]

Crypt::SSLeay In debian? What's the command.
0
votes
0answers
52 views

Apache keep catching SIGTERM out of the blue

I have apache 2.2.15 server on CentOS release 6.6 (Final). It runs mod_perl and some perl scripts in junction with mysql DB. The problem I'm encountering is that from time to time apache gets SIGTERM ...
0
votes
0answers
52 views

Find the source of spam-script

We have a shared hosting cgi-server with apache2+php fcgi and dma as mta (it forwards messages to mail relay) - it's Debian Wheezy - on it and with ability for clients to run perl/cgi scripts.There's ...
1
vote
2answers
208 views

Script output differing from output when command is run manually [closed]

I'm fairly new to things and I've been writing a simple Perl script to poll a server for iostat -k -x data every few seconds using capture from Capture::Tiny The script works, however the data being ...