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

4
votes
2answers
3k 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 ...
0
votes
0answers
7 views

Speed of opendir readdir stat vs dir listing [migrated]

I have a Perl script that is using opendir to read the contents of a directory: opendir ( DIR, $path ) or next; while (my $file = readdir DIR) { Then I'm doing: -s $file to get the size of ...
0
votes
0answers
14 views

Ubuntu hangs while running make test in IO Socket ssl

Hello I am running ubuntu 14.04 and perl version 5.23.9 (compiled) When I try to build the IO::Socket::SSL module , the machine always freezes. So I installed the module manually. Download from ...
1
vote
1answer
33 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
1answer
1k views

Why is Perl Cgiwrap Sock refusing connection to nginx?

Could anyone shed some light on the following line in my nginx error logs. I'm trying to get Perl and Nginx talking to each other, but so far no success. unix:/var/run/nginx/cgiwrap-dispatch.sock ...
0
votes
0answers
19 views

perl custom script to delete exim queue

Some years ago I wanted to lean perl and written a script to delete the exim queue if a condition is met: #!/usr/bin/perl use strict; use warnings; use Mail::Sendmail; my $host = `/bin/hostname`; ...
0
votes
1answer
23 views

Postfix, SPF, and Perl: warning: premature end-of-input on private/policy while reading input attribute name

I followed this guide (http://www.thenoccave.com/2013/05/08/centos-6-postfix-spf-checking/) but I'm getting the following errors in maillog: May 8 22:15:13 ip-172-31-15-65 postfix/smtpd[1999]: ...
3
votes
3answers
10k 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 ...
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 ...
4
votes
4answers
4k views

Strawberry Perl libeay32_.dll problem

I've installed Strawberry Perl (v5.12.3) on Windows Server 2008 32 bit and I was hoping to run simpledb CLI tools. I had a small issue with HOME environment variable, I renamed it to HOMEPATH to ...
2
votes
1answer
39 views

Spamassassin: Bypass /etc/resolv.conf DNS for querying DNSBL?

Question Is there a way to let spamassassin bypass my linux system's dns servers to query DNSBLs? Background Info When my Server receives email, it is checked by spamassassin. One of this checks ...
0
votes
2answers
788 views

How do I set up my own proxy server?

This website (abc.com) slowed access from our original IP address. How do I implement my own proxy server to hide my IP while browsing abc.com? Do I need special hardware/software combo to achieve ...
3
votes
3answers
1k 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
0answers
34 views

NFSen - init.d script not working but it can be run manually

I recently installed NFSen to get the NetFLow from our Cisco and the application is working fine if I launch it manually with /etc/init.d/nfsen start but it does not start the processes automatically ...
0
votes
0answers
32 views

Fake httpd process masked under perl execution [duplicate]

I have apparently malicious php script somewhere in my webserver, Debian 8.3, Apache 2.4 Legal Apache process can be seen like this: 16169 www-data 20 0 482156 59180 41952 S 7.3 1.5 0:01.08 ...
0
votes
1answer
941 views

Include Virtual SSI not working for CGI script

I have the following Server Side Includes within an .html file called test.html... <!--#include virtual="/cgi-bin/myScript.cgi"--> <!--#include virtual="/includes/myFile.html"--> When ...
1
vote
0answers
25 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 ...
2
votes
0answers
30 views

Server Hangup messges

First question on Server Fault! (If I have done anything wrong let me know) I manage a server and also the 3 large perl based web applications, which run on this server. The server is running CentOS ...
0
votes
2answers
1k 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 ...
2
votes
2answers
689 views

Help Installing Perl Module XML::Parser using CPAN

I'm trying to install the XML::Parser perl module using CPAN and can't get it to work. Below is the output that is being displayed by CPAN which appears to indicate that Expat is the issue. Geting ...
-1
votes
1answer
1k 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
0answers
40 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
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?
0
votes
4answers
439 views

Installing perl module

How to install perl module Util.pm .I am missing this module .What is the procedure to install a perl module
-3
votes
2answers
96 views

Convert SVN repository to git [closed]

$ svn --version svn, version 1.8.9 (r1591380) $ git --version git version 1.7.1 $ git svn clone http://host/path/to/project/ Initialized empty Git repository in /home/user/to/project/.git/ Can't ...
0
votes
1answer
46 views

SSH to ESXi server with Expect immediately closes

I am writing a VM deployment tool that needed to start VMs on an ESXi server. To do this I am using Perl's Expect module to spawn an ssh client to connect to the server and use vim-cmd to manage the ...
0
votes
0answers
12 views

Configure IIS to log CGI Output/errors?

I am trying to debug some API problems with Bugzilla (written in Perl) on my IIS 8.5 install and need to know how to configure IIS 8.5 to log CGI output/errors. Is this possible to do and if so how? ...
0
votes
1answer
401 views

Run Perl CGI Scripts On CentOS 7 With Apache/Httpd

My CGI Perl scripts CentOS 7 are not running correctly, they are either showing up as plain text or I am getting a server error. I've been placing my scripts into the default /var/www/cgi-bin ...
0
votes
0answers
38 views

Script not found or unable to stat, in “.cgi” script in some location

I have many errors in directadmin "appache error log" like this: [Wed Jan 27 15:46:26.972238 2016] [cgi:error] [pid 15176] [client 135.83.212.120:18585] AH02811: script not found or unable to stat: ...
3
votes
1answer
120 views

Windows 10 - Perl vs. dsadd/dsquery

I created a perl script for adding users to Active Directory a few months ago. On Windows 7 it runs fine. On Windows 10 perl is not able to run "dsquery" or "dsadd" but I can really not understand ...
-1
votes
1answer
52 views

How to use the awk,sed Modify the text?

As follows, some text 16G 16G 1.9G 40G 4G 4G 952M 60G 16G 16G 1.6G 40G 5G 780M 5G 80G I want to change all the unit from 'M' to 'G', like this 16G 16G ...
0
votes
2answers
65 views

View what file started a process in linux

One of my servers started sending spam in heavy amounts. The server is using ISPConfig 3 and one of the web users most likely has a security breach. I have identified the user and one file somehow ...
-2
votes
3answers
148 views

Why perl script freezes my server?

I cannot make my perl-script run stable on the server. Here is the problem: When the script is accessed more than 5 times a second, the server freezes. And in some time later the server hangs ...
2
votes
1answer
29 views

Modify file before sending to cgi handler

I'm making a portable installation of Apache to run Bugzilla. This installation has a portable version of Perl and it's the one I want mod_cgi to use. However, mod_cgi doesn't have any way to ...
3
votes
1answer
486 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 ...
3
votes
1answer
48 views

SELinux allow access for perl script via log rotate

I have a perl script that I want to run as a perorate script for log rotate. When I force log rotate to run from the command line as root, it works. However, when run through cron, SELinux prevents ...
1
vote
2answers
290 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 ...
2
votes
1answer
151 views

CPAN is using old perl version to install modules

I installed Ubuntu earlier this weekend and had to install an updated version of perl(5.22.0) for a script I'm using. However when I used CPAN to install the modules I needed I found out that they got ...
1
vote
0answers
73 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
46 views

RKHunter report: “No hash value found”

I'm getting RKHunter warnings every day when my cron job runs the check. I'm on FreeBSD 10.2 This is the warning I'm getting: Warning: No hash value found for file '/usr/bin/perl' in the ...
2
votes
2answers
599 views

server hang-up; no response, but no disconnections either

Greetings Experts, System: standard gentoo install with not much more than postfix. I was in the middle of a big IMAP-driven email-migration last night (a bunch of Perl scripts) when the new mail ...
1
vote
1answer
83 views

Email gets heavily delayed in Bugzilla

In my bugzilla (hosted in Ubuntu 12.04), emails are geting delayed upto 24hrs and sometimes even more than that. I have also installed Jobqueue.pl as well. But whenever i am checking the jobqueue ...
0
votes
2answers
114 views

Prepend String using perl/awk/sed?

I'm trying to script a change to my apache config file (httpd.conf). I'm trying to match the following string: # # DirectoryIndex: sets the file that Apache will serve if a directory And PREPEND ...
0
votes
0answers
18 views

Random newlines in CGI warnings written to the Apache error log

Since upgrading a server from Debian 7.8 to 8.2 (64-bit) the Apache upgrade (to 2.4.10) has introduced a very strange fault: random newlines in error_log. Example: [Mon Nov 16 13:29:54.388526 2015] ...
0
votes
0answers
56 views

I'm having trouble installing perl module Crypt::OpenSSL::AES

I'm having trouble installing a perl module onto my server called Crypt::OpenSSL::AES I'm using cpan to try to install it but it keeps coming back with an error: Checking if your kit is ...
0
votes
0answers
19 views

Ocsinventory custom plugin not updating a new added field

I made a custom plugin for ocsinventory and it worked alright. The hostname gets updated on the plugin alright, but not the ipaddress that I added later. Here's the structure of the table: ...
0
votes
1answer
111 views

Change NFSEN to poll and graph every 30 seconds

I am asked to modify a default clean nfsen-1.3.6p1 install to to collect and poll every 30 seconds. I "patched" libexec/NfSenRC.pm's nfdump command arguments that it uses to -w -D -t 30 -p $port -u ...
0
votes
1answer
7k 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
1answer
133 views

Net::FTP Perl module hangs

So, I'm running Perl 5.8.8 on a RHEL5.2 system. I recently moved the LDAP source for authentication, and now I'm having issues with Net::FTP. Authentication works with the new LDAP source perfectly. ...