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
0answers
16 views

What causes perl to import modules very slowly? [migrated]

I am in the process of upgrading our team's bugzilla to the most recent stable release. In the previously used Bugzilla 2.x load times of web pages have been around 2 seconds which was accepted by ...
2
votes
2answers
892 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
3answers
507 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 ...
0
votes
1answer
848 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
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
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 ...
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
votes
0answers
6 views

remove ^M from solaris by perl one liner on the same file [migrated]

usually in order to remove the ^M from file we do dos2unix test.txt test.txt tr -d ‘\r’ <old.file > <new.file> but this approach insist to create new file if we not want to create a ...
0
votes
1answer
301 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
258 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 ...
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 ...
1
vote
2answers
8k 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
votes
0answers
20 views

ack.pl tool and ack.pl flags

I am using the ack.pl tool in order to search string or IP’s in files The official site of ack.pl is - http://beyondgrep.com/documentation/ Example of ack.pl CLI ( want to find the string ...
1
vote
1answer
31 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
82 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
24 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
36 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
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 ...
1
vote
0answers
79 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 ...
2
votes
1answer
878 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 ...
0
votes
0answers
7 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
572 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
162 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
2k 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
57 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
262 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
356 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
386 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
35 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
26 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
140 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
4k 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
43 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
26 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
78 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
21 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
1k 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
474 views

Install Crypt::SSLeay Debian [closed]

Crypt::SSLeay In debian? What's the command.
0
votes
0answers
49 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
45 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
201 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 ...
0
votes
1answer
288 views

Perl modules is not getting installed in Amazon Linux AMI ( centOs 6.5)

I am configuring cloudwatch custom metrics which requires some perl modules to be installed. Here is the command I am trying to install the perl modules. yum install perl-Switch perl-Sys-Syslog ...
0
votes
0answers
36 views

Rquested URL and physical path mismatch in IIS 7

I have deployed a new windows 2008 r2 server with iis 7 I'm facing difficulties with CGI ( perl ) domains My domain uses " discusware application " which stores the contents under " cgi-bin " folder ...
0
votes
1answer
81 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 ...
1
vote
1answer
141 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
1answer
98 views

How can i set SCRIPT_NAME when using proxy_pass with nginx

I have a perl catalyst application that i'm mounting on a specific url (vs mounting on a subdomain) and am having problems setting SCRIPT_NAME on the request to the backend. This affects the urls ...
0
votes
0answers
45 views

Add custom PageSize to a PDD file (with perl regexp)

It looks like the PDD file: http://www.openprinting.org/ppd-o-matic.php?driver=pxlcolor-Ricoh&printer=Ricoh-MP_C3003&show=1 Does not allow you to set a custom media size: lp -d printer -o ...
1
vote
0answers
57 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 ...