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
0 votes
0 answers
57 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
70 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
96 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
40 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
  • 13
1 vote
1 answer
188 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,713
0 votes
0 answers
22 views

Configuring Routers using IRRToolset/IRR Power Tools

Recently, I've started configuring routers using irrpt. It offers the features I require, which are described in the section under "Purpose" (https://github.com/6connect/irrpt#purpose). But ...
Lucifer's user avatar
0 votes
2 answers
611 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
332 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
167 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
  • 41
0 votes
0 answers
348 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
243 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
75 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
  • 366
1 vote
1 answer
941 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
252 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
110 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
508 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
49 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
152 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
200 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
659 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
190 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
199 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
2k 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
  • 2,989
0 votes
0 answers
169 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
91 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
1k 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
  • 143
0 votes
1 answer
397 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
484 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
  • 217
0 votes
0 answers
166 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
460 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
  • 283
-1 votes
1 answer
965 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
  • 283
1 vote
2 answers
115 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
686 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
138 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,213
0 votes
1 answer
843 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
185 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,102
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
352 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
558 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
1k 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
157 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
717 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
217 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
752 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 /...
user5525652's 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 ...
Ryan Griggs's user avatar
2 votes
1 answer
701 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 --> ...
Andrew Newby's user avatar
  • 1,102
2 votes
1 answer
183 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 ...
Subzero123's user avatar
2 votes
1 answer
619 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 ...
TSG's user avatar
  • 1,674
1 vote
1 answer
161 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" ...
MacMartin's user avatar
  • 358

1
2 3 4 5
12