Questions tagged [perl]

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 that implements solutions to already-solved problems.

Filter by
Sorted by
Tagged with
2
votes
0answers
22 views

Getting OpenLiteSpeed to execute Perl CGI scripts

I just did a clean install of OpenLiteSpeed on Ubuntu 20.04 from the OpenLiteSpeed official repository. I followed the instructions indicated here to enable the use of Perl scripts: https://...
0
votes
0answers
16 views

Change Default Number of Processes with FastCGI on Apache

The tl;dr: I'd like to tell Apache to spawn two copies of a FastCGI process by default. The issue: I've set up an Apache server running FastCGI for a Perl content management system I've written. ...
0
votes
1answer
47 views

Is FastCGI OK in 2021?

It appears most discussions about FastCGI here are frozen from nearly a decade ago and so as someone who just decided to start making use of it, I'm wondering if I am making a mistake with unforeseen ...
0
votes
0answers
20 views

Why are these packages removed when installing ufw on Debian 6?

I have a very old legacy server running Debian 6.0.10, from which I'm gradually moving things to Debian 10 on a fresh server. There haven't been any real issues, although I'm well aware there may be ...
2
votes
1answer
39 views

IO::Socket::SSL “out of memory” installation error

I would like to install OcsInventory Unix Agent 2.8 on a Solaris 10 machine. When running the perl Makefile.PL command in the directory, it lists the modules which are required by the agent to work ...
0
votes
2answers
60 views

Best and simple way to prevent automatic backups filling all disk space in Linux, before it actually happens

Which do you think is the best and most simple way to prevent automatic backups filling all disk space in Linux, before it actually happens? I would like to automatically recycle the oldest ones when ...
0
votes
1answer
121 views

Can't run CPAN due to missing modules (but they are there!)

I've got a big problem with my RHEL7 Perl installation. Whenever I try to run cpan, it gives me the following error: [michael@xlinfp101 ~]$ sudo cpan [sudo] password for michael: Socket object version ...
0
votes
1answer
120 views

StrawberryPerl 5.32.0.1 & Tk CPAN error: Undefined reference to MAX

Trying to install Tk through CPAN with StrawberryPerl 5.32.0.1 and getting an error at the end. Tried both 32 & 64 bit versions and get the same error with both. Here's the output of the ...
11
votes
3answers
2k views

What happens to an ssh process if the local IP address changes? [closed]

I use a perl script (with the Semaphore package) to fire off long-running ssh commands to AWS instances. For several reasons, I do NOT run the ssh commands in the background. Recently, the Comcast ...
0
votes
0answers
121 views

Jenkins scripted client access to node/block logs (not full log). curl works, but suggested perl code does not

I want to get the log for a Jenkins node (enclosingBlock) for one of my jobs. I know I can get the full log: (replacing jenkinsserver and %JOB% as appropriate) http://jenkinsserver/job/%JOB/lastBuild/...
1
vote
1answer
710 views

SpamAssassin local.cf DMARC configuration recognizes reject and none, but not quarantine

For SpamAssassin 3.4.2 I've added the below configuration ruleset to local.cf with the intent of providing a spam score for failed DMARC tests. The DMARC and SPF Authentication-Results headers are ...
0
votes
0answers
52 views

Empty response of nginx with ngx_http_perl_module

I have to run a very simplistic piece of perl code in response to HTTP request. The nginx config is: http { perl_modules perl/lib; perl_require errors.pm; server { listen ...
0
votes
1answer
47 views

Best way to secure world-writable .shtml files written to by Perl?

The Perl script I have a Perl script running on an old Debian 6 server (until I move to a new server) that opens an editable pane in an .shtml file, accepts only Creole markup input from a single ...
0
votes
1answer
299 views

How to separate variables using awk and append it to Text file using ansible

What I got as extra variable to ansible playbook is "CHOW_app/timmy_app1/johnn_app3/harper_app4/mona_app5". This is passed as single variable to the playbook. I have to separate it and save it in a ...
0
votes
1answer
188 views

Webmin shows plain Perl script when try to open login page

when I try to open webmin login page "https://192.168.1.13:10000" it shows plain Perl script like below, what is problem? I'm running Ubuntu 18.04 and latest version of webmin. #!/usr/bin/perl # # ...
0
votes
1answer
39 views

Apache: No custom headers in environment variables

I've just installed a new webserver (Debian Buster, Apache, Dovecot, ISPConfig) to replace an old webserver. One of my websites uses custom request headers (through Javascript) to pass information to ...
0
votes
0answers
56 views

Solved: Yum install of perl engages in circular logic

Edit: I'm an idiot and forgot to use createrepo and update the repodata, so the dependencies were not found on the repo. Mystery solved. Bit of an odd one. I'm attempting to install perl on a Redhat ...
1
vote
1answer
179 views

apache error “no macro defined before Use”

REVISED I inherited this apache server from a Perl shop that I now work. When this web server was on ubuntu 14.04, I had no issues starting apache. I upgraded the server to ubuntu 18.04 and now ...
-1
votes
1answer
168 views

Using Net::SMTP::TLS with Amazon's Simple Email Service

I have been using Net::SMTP::TLS for my web application to send password reset emails using Google email for years. my $smtp = Net::SMTP::TLS->new(email-smtp.us-east-1.amazonaws.com, ...
1
vote
2answers
61 views

Perl - SSH and run backup while retain the session

Hope someone can help me here. Looking to redo my bash ssh script for cisco devices, and add on to it. Basically, my idea is to have an SSH to log me to the device in enable mode (so i can do regular ...
2
votes
0answers
358 views

Apache 2.4 not calling Perl FastCGI Authenticator script

My company is currently trying implement a new Perl FastCGI based login script to work with Apache 2.4's mod_fcgid module. Our old one relied on mod_perl to do the bridge between Apache's basic ...
3
votes
2answers
78 views

Force all Perl scripts to run with `use strict`

I just went through a large legacy Perl web application (built using cgi-lib.pl and running as CGI with Apache HTTPD) and updated every script to use strict;, fixing a lot of small bugs along the way. ...
0
votes
1answer
444 views

Can't locate object method “object_file” via package

When i am installing Params:Validate on my linux server i am getting below error Can't locate object method "object_file" via package "ExtUtils::CBuilder" at /usr/lib/perl5/5.10.0/Module/Build/Base.pm ...
0
votes
0answers
66 views

Perl script slower on other server compared to dev (with same spec)

I'm trying to figure out why a Perl script I have, isn't performing anywhere near as well once I put it on the live server. The whole script is identical on both servers (one is a test server, the ...
2
votes
1answer
902 views

error while installing perl-Moose on red hat linux

I am seeing the errors below while installing perl-moose using command yum install perl-Moose Can someone please help me with commands on how to install these dependencies? Thanks in advance Error: ...
0
votes
0answers
223 views

DBI connect('orthomcl:mysql_local_infile=1','root',…) failed

I have cat orthomcl/Dockerfile: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ cpanminus \ build-essential \ ...
1
vote
1answer
491 views

docker-compose up caused orthomcl_orthomcl_1 exited with code 0

I have cat orthomcl/Dockerfile: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ cpanminus \ build-essential \ ...
1
vote
0answers
591 views

Apache 2.4.29: cgi scripts load as text, even though cgi is enabled and .conf set up

I spent a few days searching for answers on serverfault and elsewhere, and tried them all to no avail. I'm trying to serve dynamic content using perl cgi scripts (Apache 2.4.29 on Ubuntu 18.04.2). The ...
0
votes
1answer
61 views

Regex group printing in bash

I want to use egrep on log file where it would only output me matched groups. I've got in log file this: queued as 6B6A72A7896 sent 00100000000000000 0 2019 Apr 7 00:37:39 using PCRE ...
0
votes
1answer
254 views

How to reinstall/fix specific perl module on ubuntu 16.04

During an update, apt and dkpg returned the following error: dpkg: error processing package libperl5.22:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it ...
2
votes
1answer
81 views

Binaries generated by perl's PAR::Packer break when packaged in RPM

I have a perl script that I want to be usable on systems with no perl interpreter installed (like a linux container, for example). I generate a binary with PAR::Packer and everything appears to work ...
0
votes
1answer
496 views

Upgrade OTRS 6.0 - /opt/otrs/bin/c CPU usage

OTRS 6.0 - /opt/otrs/bin/c CPU usage Hi everyone, On OTRS 6.0, the /opt/otrs/bin/c processus use 100% when login to otrs/index.pl : 3104 apache 20 0 441496 79904 6308 R 100.0 0.2 0:06.05 /...
0
votes
0answers
14 views

Running processes: “perl /tmp/dd” - what is this? [duplicate]

I have a LAMP server with about 50 virtual domains, and am using Webmin/Virtualmin to manage the server. When looking at running processes (top) I see one domain's username is running a couple of ...
2
votes
1answer
507 views

WWW::Mechanize Perl module won't install on server

I'm trying to work out why a Perl module won't install on my server. cpanm WWW::Mechanize It processes stuff for ages, and then eventually dies with: root@admin:~# cpanm WWW::Mechanize --> ...
2
votes
1answer
82 views

Checking the validity of Resource Records in DNS Zones

I am using perl to do some DNS manipulation tasks. I am using NSD as my DNS server. I want to figure out what the best way is to check whether the names of all Resource Records in a DNS zone file ...
2
votes
1answer
420 views

Systemd service file for assp

I'm running ASSP on CentOS 7 which uses systemd. The only pre-made service file I could find (howtoforge.com) uses oneshot type which I'm not sure is right. More importantly, the stop command seems ...
1
vote
1answer
115 views

How to distribure sudoers files with REX Configuration Management

When trying to push a sudoers file to other machines, the rexcm task/command gets stuck. The Problem is (so it seems to me), that the sudoers file is owned by the rex-user when writing and "other" ...
1
vote
1answer
134 views

How to backup a file before changing it with “REX Configuration management” (rexify)

How do I backup files when making a change with rex cm (rexify.org) - or do I have to do this manually? I see no option in the File.pm API - description. I hope there is some undocumented feature. ...
0
votes
1answer
517 views

Connection Error with TCP sockets between a Windows 2012 R2 and Linux Centos7

I have a connection problem with TCP sockets between a Windows 2012 R2 machine and Linux CentOS7. When I run a perl client that sends several messages from Linux to a Windows perl service, it allways ...
1
vote
0answers
151 views

Apache mod_ext_filter and mod_proxy

I have a problem using apache mod_ext_filter and mod_proxy. I wrote a per script (add-promo.pl) in order to add some tags to HTML page. My problem is that Apache don't run this script. I have ...
0
votes
0answers
1k views

Perl cgi script displayed as plain text instead of executing

After reading and trying suggestions from: here and here, I am still unable to get apache to execute the perl script. I am on macOS High Sierra and running brew apache. The script works fine if I ...
1
vote
1answer
452 views

pg_upgradecluster fails with “Error: could not get cluster locales”

I'm trying to upgrade postgres cluster from 9.5 to 10 Steps I did: installed postgresql-10 and postgresql-client-10 removed new default 10 main cluster used command "pg_upgradecluster 9.5 main" ...
0
votes
1answer
71 views

different permissions running script from web browser or www-data user

I want a perl to write to my server's file system but I have a problem. It fails when checking permissions (with -w). I reduced the issue to its simplest expression : #!/usr/bin/perl print "...
0
votes
1answer
212 views

Bash Script to Rebuild Nginx w/ Custom Modules

I'm trying to write a script that will build Nginx from sources with custom modules... I'd like to do it in a clean manner that doesn't require updating version numbers after a new release. What I've ...
-1
votes
1answer
1k views

SMTP error 554 5.7.1 and 221 2.7.0

I have a dedicated server that connects to a webhosting to send a mails using SMTP protocol, but I get 554 5.7.1 and 221 2.7.0 errors and e-mail won't send. Full SMTP log is below. This is a script ...
0
votes
1answer
333 views

Perl can't find Multicast.pm [duplicate]

[root@newserver Socket]# /root/scripts/filetest testfile.txt Can't locate loadable object for module IO::Socket::Multicast in @INC (@INC contains: /usr/local/lib64/perl5/IO/Socket /usr/local/lib64/...
0
votes
1answer
395 views

How to parse an ldif export for attribute values

I have an ldif export where I want to build an outputfile with one line per ldif entry; the one line contains various attribute-values in a specific order. So the commands should parse each ldif ...
0
votes
1answer
103 views

nph script corrupted in browser with apache2 v 2.4

I'm trying to figure out why an nph- script in Perl is corrupting from the browser. This is the code: #!/usr/bin/perl print "Content-Type: text/plain\n\n"; print "FOO"; I name it nph-test.cgi, and ...
0
votes
0answers
208 views

Nginx is not serving Perl files

I am running Nginx server on Debian 9. My problem is that, Nginx is serving Perl files in root directory, but it is not serving in alias directory (I get 403 Forbidden). This is my configuration of ...
2
votes
1answer
282 views

Multi-line PCRE w\ lookhead, count matches

I am trying to perform a regex that matches if both the word cat AND dog are in the regex with multi-line support matches cat asdjfaldsfj dog #### does NOT match cat adfasdf8989 #### matches dog ...

1
2 3 4 5
12