2022 Developer Survey is open! Take survey.

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
1 vote
1 answer
30 views

Freeradius with dhcp server: Calls to perl module returns error

This is a continuation of my previous question in sending static routes from Freeradius DHCP server implementation in combination with Strongswan VPN server. When debugging Freeradius using tcpdump ...
user avatar
0 votes
0 answers
18 views

How to get mimedefang's md_syslog to log?

I'm trying to debug a mimedefang filter I've written, and I can't seem to get md_syslog to actually log anything. This is with mimedefang 2.85 on Amazon Linux 2. Somehow logging seems to be working ...
user avatar
0 votes
0 answers
264 views

Installing perl-crypt-ssleay on CentOS8

We have a hard requirement to install perl-crypt-ssleay. As per https://bugzilla.redhat.com/show_bug.cgi?id=1744782 it's no longer available for CentOS8. I tried doing cpan Crypt::SSLeay but that ...
user avatar
0 votes
1 answer
29 views

Perl array of arrays in loop

How can I add array to list of arrays ( 2D array ) in perl ? This option not working / example: my @db; my $i = 0; my @random; while($i < 10) { @random = genNum(49, 6); @db[$i++] = @random; ...
user avatar
  • 41
0 votes
0 answers
148 views

HTTP_IF_NONE_MATCH Missing on Server Side with Chrome Requests to NGINX

I'm trying to add etag based cache verification to a web app I've developed that runs on Apache via an NGINX reverse proxy. The web app is written in Perl. In the Perl script, I check for the $ENV{'...
user avatar
1 vote
0 answers
163 views

Nginx conf file with perl software

I have successfully installed a Perl application on my Ubunti 20.4 LEMP stack, and I can access it on: http://example.com:5762/login.pl and http://example.com:5762/setup.pl I want to install and ...
user avatar
  • 123
0 votes
1 answer
35 views

What happened to Data::UUID in SLES?

I have a Perl program with tradition (i.e. I use it over 10 years), but today I realized that it cannot find Data::UUID any more. I also tried to install a corresponding package from the SLES software ...
user avatar
  • 264
0 votes
1 answer
187 views

Problems when install perl package

I am using Red hat (Red Hat Enterprise Linux release 8.2 (Ootpa) - 4.18.0-193.14.3.el8_2.x86_64). When I install perl package by using rpm package and command dnf install perl-libs-5.26.3-419.el8....
user avatar
  • 3
0 votes
1 answer
138 views

Failed to set up Apache for executing PERL file in FreeBSD

I've successfully installed perl5 and apache24 in FreeBSD 12. Then I enabled apache24 in /etc/rc.conf and see index.html placed in the path /usr/local/www/apache24/data. Then in the file /usr/local/...
user avatar
  • 121
1 vote
0 answers
80 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://...
user avatar
  • 111
0 votes
1 answer
265 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
2 votes
1 answer
55 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 ...
user avatar
0 votes
2 answers
122 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 ...
user avatar
  • 11
0 votes
1 answer
381 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 ...
user avatar
0 votes
1 answer
156 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 ...
user avatar
  • 97
11 votes
3 answers
3k 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 ...
user avatar
0 votes
0 answers
151 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/...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 2,698
0 votes
0 answers
108 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 ...
user avatar
  • 101
0 votes
1 answer
67 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 ...
user avatar
0 votes
1 answer
993 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 ...
user avatar
  • 123
0 votes
1 answer
270 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 # # ...
user avatar
0 votes
1 answer
162 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 ...
user avatar
  • 155
0 votes
0 answers
76 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 ...
user avatar
  • 11
1 vote
1 answer
319 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 ...
user avatar
  • 263
-1 votes
1 answer
464 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, ...
user avatar
  • 263
1 vote
2 answers
89 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 ...
user avatar
  • 11
2 votes
0 answers
499 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 ...
user avatar
3 votes
2 answers
101 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. ...
user avatar
  • 1,203
0 votes
1 answer
640 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 ...
user avatar
  • 1
0 votes
0 answers
109 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 ...
user avatar
2 votes
1 answer
1k 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: ...
user avatar
0 votes
0 answers
300 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 \ ...
user avatar
1 vote
1 answer
540 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 \ ...
user avatar
1 vote
0 answers
973 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
0 votes
1 answer
432 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 ...
user avatar
  • 151
2 votes
1 answer
122 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 ...
user avatar
  • 204
0 votes
1 answer
641 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 /...
user avatar
0 votes
0 answers
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 ...
user avatar
2 votes
1 answer
587 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 --> ...
user avatar
2 votes
1 answer
123 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 are ...
user avatar
2 votes
1 answer
487 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 ...
user avatar
  • 1,604
1 vote
1 answer
134 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" ...
user avatar
  • 338
1 vote
1 answer
144 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. ...
user avatar
  • 338
0 votes
1 answer
629 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 ...
user avatar
1 vote
0 answers
173 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 ...
user avatar
  • 11
0 votes
0 answers
2k 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 ...
user avatar
1 vote
1 answer
515 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" ...
user avatar

1
2 3 4 5
12