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
17 views

Increasing execution time for perl script inside php script through browser

I am trying to execute perl script inside php script. Although it is running but only for short duration. But in Command line it is perfectly producing the output. My question is how to increase the ...
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 ...
0
votes
0answers
3 views

Postgresql perl : “NOTICE: elseif should be elsif at line …” [migrated]

It's not the first time I get this strange NOTICE when adding perl functions in Postgresql : NOTICE: elseif should be elsif at line 11. This happens at CREATE FUNCTION as well as when using the ...
0
votes
0answers
6 views

Crypt-SSLeay on a macbook [migrated]

I'm trying to install Crypt-SSLeay on a macbook and it failed. I manually downloaded Crypt-SSLeay from cpan and issued: perl Makefile.pl The error is openssl-version.c:2:10: fatal error: '...
0
votes
0answers
19 views

check_esx.pl doesn't work

I try to execute a shinken plugin: /var/lib/shinken/libexec/check_esx3.pl. It fails. error CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://dc-srv03.rthd.intra:443/sdk/vimService.wsdl'...
-1
votes
0answers
21 views

NFSen Shadow profile “Statistics timeslot” does not reflect change in polling value (CYCLETIME=60)

I have googled extensively and searched on the NFSen mailing list regarding this issue with no success so far (although I might have missed something obvious). Using the information provided in this ...
-2
votes
1answer
19 views

Uploading files in CentOS - permission denied

I am trying to upload files to a web server running Apache/2.4.6 on CentOS 7 using a simple Perl script. I get a permission denied message. My code: [user@machine cgi-bin]$ cat test.pl #!/usr/bin/...
0
votes
0answers
23 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 ...
0
votes
0answers
21 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`; ...
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 ...
0
votes
1answer
45 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]: ...
2
votes
1answer
50 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
0answers
39 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 ...
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 ...
2
votes
0answers
36 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 ...
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
1answer
54 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 ...
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 ...
-3
votes
2answers
108 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
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
575 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
46 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
146 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
53 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
66 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 ...
3
votes
1answer
53 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 ...
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 ...
2
votes
1answer
184 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
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
51 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 'rkhunter....
0
votes
2answers
119 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 ...
1
vote
1answer
87 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
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
65 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 complete......
0
votes
1answer
148 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 $...
1
vote
3answers
182 views

How execute perl one-liner from perl script (properly escaped)

I have a perl script from within which I need to execute a simple perl one-liner on a remote host: ssh 192.168.1.1 "perl -pi.bup -e 's/^(\s+?kernel)(.*)(?<!audit=1)$/$1$2 audit=1/' /etc/grub.conf" ...
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 ...
0
votes
0answers
38 views

lighttpd cgi.conf applying script path rather than documents path to returned data

I have an application that has both static html files and dynamic html file created using perl. The static pages are in a directory /usr/local/domain/htdocs with a number of sub-directories ...
0
votes
0answers
86 views

FastCGI: manager (pid YYYYY): server (pid XXXX) exited with status 13

FastCGI: manager (pid 6776): server (pid 20254) exited with status 13 FastCGI: manager (pid 6776): server (pid 18918) started FastCGI: server (pid 18918): initialized I am getting above mentioned ...
0
votes
0answers
22 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: +----------...
-1
votes
2answers
41 views

Regex - match third number before a character [closed]

I have this string: /dev/sda1 23G 46G 47G 22% And want to match only the integer in 47's place. I tried modifying the "match second set of numbers" example (i.e.,\d+[^\d*](\d+)) here to ...
0
votes
1answer
119 views

Sending mail from perl applications with SSMTP

I am on host-server with Centos 7 and KVM virtualization. I have 2 guest systems which are in routed virtual LAN. One of them is WEB server, the other is a mail server. Web server has hostname example....
0
votes
0answers
63 views

Perl scripts stopped working after Debian 8.1 upgrade

I am currently playing around on my dev server, to try and get it running the latest Debian (Jessie). I've got it all upgraded using this tutorial: http://linuxconfig.org/how-to-upgrade-debian-linux-...
0
votes
1answer
198 views

Perl and nginx configuation

I'm trying to get the latest nginx running alongside Perl. I know Perl itself is installed, as I can run test.cgi perfectly from the command line. However, when trying to run from the browser I get a "...
1
vote
2answers
99 views

Why perl backticks don't see anything past the first space?

I have a command $output = `somecommand parm1 parm2`; When I try to run this perl script I get. Can't exec "somecommand" at ..... It seems it is not seeing anything past the first space in ...
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 ...
1
vote
1answer
140 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 ...