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

Nasty character encoding issue

I have been using a FOSS software written in perl (sql-ledger) for many many years. Currently self hosted on CentOS 7. For some reasons, I need to update OS to a higher version (preferably Rocky/Alma ...
sse450's user avatar
  • 11
-1 votes
1 answer
167 views

How to bypass postfix milters for certain users?

I am trying to set up an incoming MTA server using Postfix. I have specific requirements that some users' emails should not go through the milters. Is there any way this can be done in Postfix? One ...
SUNITA GUPTA's user avatar
0 votes
1 answer
521 views

How to check if a process is running or blocked on lock or I/O?

There are 2 instances of a script reported by ps. How can I see in the command line if one of those (and which) is blocked on either I/O or on a file lock?
Jim's user avatar
  • 99
0 votes
0 answers
35 views

How to integrate a python script with amavis or spamassasin?

I have an MTA setup with postfix acting as MTA and Amavis acting as content filter; Amavis is configured for using SpamAssassin and Clamav. I have written a Python script that basically analyses an ...
SUNITA GUPTA's user avatar
1 vote
1 answer
847 views

How to install Crypt::SSLeay from cpan?

I'm trying to install perl module Crypt::SSLeay from cpan running in Debian-based environment (in order to rule out dependency issues, I'm running this in official perl Docker container), but I ...
AntonioK's user avatar
  • 613
-1 votes
1 answer
155 views

Perl script to restart Apache in Windows

Is this all I need to restart Apache from within my Perl script? system("C:\\Apache24\\bin\\httpd.exe -k restart"); I tried to verify that this actually restarts Apache, but cant find my ...
MeSo2's user avatar
  • 274
0 votes
0 answers
290 views

Not able to Fetch email in otrs

I am trying to setup a otrs ticketing tool , the tool needs to fetch email and generate ticket, when I am setting that with my google mail account its working however when I am using my professional ...
biplab 's user avatar
1 vote
0 answers
226 views

Emails sent with Perl NET::SMTP through Exim and then Postfix slow down when coming from one particular server

We have several servers set up on Debian 11 (Bullseye). One of the processes we run on all servers at regular interval during the day, with cron, is a perl script that reads from a MySQL database and ...
InLibrolivier's user avatar
0 votes
1 answer
443 views

Trying to install XML::Parser on RHEL8 Linux

I'm trying to install XML::Parser in RHEL8 Linux and have both OS RPM packages 'expat' and 'expat-devel' installed. I also have a successful expat Perl module installation running: cpanm XML::Parser::...
codecat's user avatar
1 vote
1 answer
129 views

lighttpd 1.4.46+ serve specific file based on $HTTP["useragent"]

I have a lighttpd server version 1.4.46+ on Linux which serves file1.xml and file2.xml from htdocs directory as is. There are clients that request these files, each of those send a User-Agent header ...
FearDC's user avatar
  • 11
1 vote
1 answer
371 views

Use of uninitialized value in numeric eq (==) at /usr/share/perl5/Net/Server/Fork.pm line 168

On my new Debian Bookworm, the file /usr/share/perl5/Net/Server/Fork.pm generates an error in logs each time Munin calls it. The error logged is "Use of uninitialized value in numeric eq (==) ...
Dom's user avatar
  • 6,793
0 votes
2 answers
881 views

Run a perl script in a browser via a link

I'm attempting to get a perl script up and running on Oracle Linux 8.5. My Apache server and virtual hosts work with static html. My test virtual host, fnu, has a very basic perl script named hw.pl in ...
SKaye's user avatar
  • 1
1 vote
1 answer
559 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 ...
Lasse Michael Mølgaard's user avatar
0 votes
1 answer
226 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; ...
Macsurf's user avatar
  • 51
0 votes
0 answers
485 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{'...
Timothy R. Butler's user avatar
1 vote
0 answers
299 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 ...
Abe's user avatar
  • 123
0 votes
1 answer
110 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 ...
U. Windl's user avatar
  • 391
1 vote
1 answer
2k 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....
MiSFhE's user avatar
  • 13
0 votes
1 answer
355 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/...
stckvrw's user avatar
  • 121
1 vote
0 answers
137 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://...
gpwr's user avatar
  • 111
0 votes
1 answer
721 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 ...
Timothy R. Butler's user avatar
0 votes
0 answers
63 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 ...
Dave Everitt's user avatar
2 votes
1 answer
225 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 ...
user312442's user avatar
0 votes
2 answers
240 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 ...
fjcobas's user avatar
  • 11
0 votes
1 answer
794 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 ...
Michael Gierer's user avatar
0 votes
1 answer
255 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 ...
Brent's user avatar
  • 107
12 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 ...
Morgan Brown's user avatar
0 votes
0 answers
260 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/...
David Ljung Madison Stellar's user avatar
1 vote
1 answer
3k 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 ...
Paul's user avatar
  • 3,137
0 votes
0 answers
252 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 ...
sotona's user avatar
  • 101
0 votes
1 answer
113 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 ...
Dave Everitt's user avatar
0 votes
1 answer
2k 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 ...
saffron's user avatar
  • 153
0 votes
1 answer
479 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 # # ...
marcelo12's user avatar
0 votes
1 answer
614 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 ...
Zippy1970's user avatar
  • 279
0 votes
0 answers
200 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 ...
Ang D's user avatar
  • 11
1 vote
1 answer
587 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 ...
BioRod's user avatar
  • 303
0 votes
1 answer
1k 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, ...
BioRod's user avatar
  • 303
1 vote
2 answers
139 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 ...
Lillith's user avatar
  • 11
2 votes
0 answers
813 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 ...
Jorge_Freitas's user avatar
3 votes
2 answers
161 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. ...
yakatz's user avatar
  • 1,243
0 votes
1 answer
996 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 ...
Raj's user avatar
  • 1
0 votes
0 answers
240 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 ...
Andrew Newby's user avatar
  • 1,184
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: ...
Santosh Pillai's user avatar
0 votes
0 answers
388 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 \ ...
user977828's user avatar
1 vote
1 answer
592 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 \ ...
user977828's user avatar
1 vote
0 answers
2k 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 ...
James Gawley's user avatar
0 votes
1 answer
195 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 ...
Antonio Zunic's user avatar
0 votes
1 answer
916 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 ...
mrpatg's user avatar
  • 151
2 votes
1 answer
286 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 ...
Ishpeck's user avatar
  • 224
0 votes
1 answer
815 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 /...
Isopote42's user avatar
  • 157

1
2 3 4 5
12