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
2 answers
226 views

Prevent users from listing Apache server accounts

I'm managing an Apache Server (Centos 5.6 + cPanel) and I found a code that lists all user accounts hosted in the server. I want to know if there is something that I should change in the Apache ...
bnabilos's user avatar
  • 111
1 vote
1 answer
141 views

self_url() shows incorrect value when using Apache load balancer and PlackUp

Apache proxies to a PSGI application using HTTP::Server::PSGI. apache conf file: <Proxy balancer://my_cluster> BalancerMember http://127.0.0.1:3001 BalancerMember http://127.0.0.1:3002 ...
nathand's user avatar
  • 198
1 vote
1 answer
480 views

Execute a Perl script after reboot on Solaris 10

During my activities on Solaris 10 machine I need twice reboot the Solaris unit and after reboot I'd like to run several scripts. Before first reboot I store in /etc/rc3.d/S99myScript some bash ...
Toren's user avatar
  • 137
1 vote
3 answers
3k views

Bugzilla Installation / perl-DBD-mysql

While running ./checksetup.pl I get this error where the installation stops. Reading ./localconfig... Checking for DBD-mysql (v4.00) ok: found v4.018 Checking for MySQL (...
Andi T's user avatar
  • 115
1 vote
1 answer
669 views

Need help on awk/sed/ perl pattern with regex / grep

Sample file output from grep file1:my $dbh = DBI->connect("dbi:mysql:$database_name", $DB_USER, $DB_PASSWD) file2:($dbc,$rc) = mysql_connect($mysql_host,$mysql_user,$mysql_password); The awk ...
Jayakumar K's user avatar
1 vote
1 answer
2k views

How can I automatically install Perl modules from ports in FreeBSD?

I need to automate installation of a multitude of Perl modules. Most of them are present in ports. But some modules are located in bundles, for example www/p5-HTML-Tree prvides HTML::Element, HTML::...
Eugene Yarmash's user avatar
1 vote
4 answers
22k views

Where to get RRDs.pm?

I'm trying to set up opsview (Nagios) on a CentOS 5 server running perl 5.8.9 When I try to start it, it can't find RRDs.pm. Turns out, neither can I. It's not on CPAN and I've been unable to ...
Brad Mace's user avatar
  • 1,024
1 vote
1 answer
3k views

Need Help getting perl module DBD::mysql installed for bugzilla on RedHat

Hi everyone I am having some issues getting Bugzilla setup, I have the software on the server and am trying to get the pre-rec's setup. I am using RedHat 4.1.2-42. I have all of the required perl ...
Alos Diallo's user avatar
1 vote
3 answers
218 views

perl question needing to get value from file

I am writing a perl script to automate certain processes on our Oracle databases. One portion of the script involves putting the script to sleep until the alert log shows the database open. I intend ...
user avatar
1 vote
1 answer
852 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 vote
1 answer
373 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
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
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
1 vote
1 answer
162 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. ...
MacMartin's user avatar
  • 378
1 vote
2 answers
227 views

Spamassasin not checking SPF - Perl error?

Getting lots of email spoofing spam from our own domains to my Webmin installation using Spamassasin, the error im receiving when debugging spam is as follows: May 19 09:33:45.959 [15233] dbg: spf: ...
Paul Cullen's user avatar
1 vote
1 answer
435 views

nginx + apache2 proxy pass, with mod_perl not working

I'm trying to get mod_perl working on Apache/2.4.18 (Ubuntu). Here is my main domain config file in Apache2: <Virtualhost 0.0.0.0:8181> ServerName test DocumentRoot /srv/www/test.pro/...
Andrew Newby's user avatar
  • 1,184
1 vote
1 answer
929 views

Apache - mod_perl : Unknown Authz provider 'access'

I am trying to set up and run an old Web application(written in 2010) in a new Linux environment. The Apache server is not starting because of the error Unknown Authz provider access, caused by the ...
Diode's user avatar
  • 121
1 vote
2 answers
1k views

Apache perl script plain text output

Can anyone suggest why my perl script is rendering as plain text: #!/usr/bin/perl use FindBin; BEGIN { lib->import($FindBin::Bin) unless $ENV{mod_perl} } require 'lsmb-request.pl'; My Directory ...
Dave Coventry's user avatar
1 vote
1 answer
411 views

perl smokeping false packet loss

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 ...
pr0logas's user avatar
  • 121
1 vote
1 answer
159 views

Why my date command changed and how to restore the default one?

I'm having a problem in a RHEL 5.3 after I tried installing Perl Power Tools. Everything was working fine until I tried installing that package by hand (the server has no access to internet). At ...
Nocturn's user avatar
  • 133
1 vote
1 answer
3k views

Errors when running cron: grandchild #10010 failed with exit status 2: 1 Time(s)

In recent weeks I have seen this type of error many times on my debian 6 servers. I have seen different exit status, 1, 2, 25, 255 Errors when running cron: grandchild #10010 failed with exit ...
Sverre's user avatar
  • 763
1 vote
2 answers
6k views

Perl modules is not getting installed in Amazon Linux AMI ( centOs 6.5)

I am configuring cloudwatch custom metrics which requires some perl modules to be installed. Here is the command I am trying to install the perl modules. yum install perl-Switch perl-Sys-Syslog perl-...
Nikunj Shukla's user avatar
1 vote
1 answer
1k views

Ubuntu Upgrade, Perl Version Broke ZImbra

Kind of in a bind here, since I heard about the bash bugs last night I decided on upgrading all off my server, not just the packages but the complete OS, it worked fine on all my servers, except my ...
juhenriquez's user avatar
1 vote
1 answer
1k views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
Ignacio Correia's user avatar
1 vote
1 answer
526 views

SpamAssassin ASN Plugin

I've got spamassassin 3.4.0 setup to use Mail::SpamAssassin::Plugin::ASN. cpan confirms that it is installed, and dig confirms that I can get the ASN TXT records from http://routeviews.org. My local....
justinzane's user avatar
1 vote
2 answers
845 views

monitorix 3.4.0 error: File 'monitorix.conf.path' was not found

I am running monitorix on CentOS using my apache server (as opposed to the built-in server) wit the following addition to the virtualhost: Alias /monitorix /usr/share/monitorix <Directory /usr/...
uncovery's user avatar
  • 345
1 vote
2 answers
2k views

AWStats process dies while processing large logs

I have really large nginx log files - as much as 250MB. When I have ran like 10 days of the month of log files - then the next daily logs would cause my awstats to die. Like so: /usr/lib/cgi-bin/...
David's user avatar
  • 167
1 vote
2 answers
862 views

Locating Rogue Perl Script

I've been trying to source the location of a perl script which is causing havoc on a server which I control. I'm also trying to find out exactly how this script was installed on the server - my best ...
Gary Garside's user avatar
1 vote
1 answer
929 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...
gideon's user avatar
  • 1,145
1 vote
2 answers
13k views

Configure Perl DBI and DBD in Linux

I am new to Perl and I work in a Linux OEL 5x server. I am trying to configure the Perl DB modules for Oracle connectivity (DBD and DBI modules). Can anyone help me out in the installation procedure? ...
Balualways's user avatar
1 vote
1 answer
221 views

Using environment variables to keep track of processes launched by cron

My question: I have an if statement in perl where I attempt to detect via environment variables at the time of launching the perl script whether it was launched via a cron job or via normal execution ...
perlnovice's user avatar
1 vote
1 answer
1k views

BugZilla XML RPC Interface

I am attempting to setup BugZilla to receive bug reports from another system using the XML-RPC interface. BugZilla works fine on its own with its own interface. When I attempt to test the XML-RPC ...
Damo's user avatar
  • 415
1 vote
2 answers
6k views

Centos 6, apache mod_perl configured but not working

I just received today my dedi server access, I installed apache: yum install httpd After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my email....
Hamza's user avatar
  • 264
1 vote
1 answer
734 views

How to listen for SNMP Traps from SNMP enabled network devices?

I just began working for my school's networking department, and I was assigned a project to develop a program to listen for traps from SNMP network devices. The device I am testing with an Access ...
ILikeTacos's user avatar
1 vote
1 answer
542 views

Nginx directory aliasing incorrectly passing to fcgi

I have a website virtual host, example.com, which is statically served out of /home/erealms/www. However, the website runs through a series of perl scripts, which are located in various directories. ...
Pryoidain's user avatar
1 vote
1 answer
128 views

weird behavior of perl's Compress-Zlib? [closed]

I'm been going crazy on this one... I've been using the gzflush() function for years in my collectl tool and recently noticed something very unusual with it on debian. I'm actually thinking it's ...
Mark J Seger's user avatar
1 vote
1 answer
2k views

nginx perl not working

I have NGINX working happily with PHP FPM all tickety-boo. I am trying to add some Perl pages. I have this in my default site config; location ~ \.pl$ { gzip off; include ...
Baldrick's user avatar
  • 4,242
1 vote
1 answer
2k views

bastille cannot find Curses.pm

i am running centos 6 and installed the rpm version of bastille, it cannot find Curses.pm, however perl-Curses is installed and somehow even perl cannot find it. [root@server ~]# /usr/sbin/bastille -...
krisdigitx's user avatar
1 vote
1 answer
490 views

SSH executed from Perl get SIGSTOP instantly

I have some perl script which executes some commands on remote gerrit server via SSH. It's running on a Debian lenny virtual machin. During several monthes it was executed in the following way: ./...
VestniK's user avatar
  • 121
1 vote
2 answers
4k views

PERL+mysql: undefined symbol: mysql_init

I've updated mysql (client+server+dev) from the rpms available on mysql.com. rpm -i MySQL-server-5.5.14-1.linux2.6.x86_64.rpm rpm -i MySQL-client-5.5.14-1.linux2.6.x86_64.rpm rpm -i MySQL-devel-5.5....
Pierre's user avatar
  • 429
1 vote
1 answer
3k views

How can I enable IIS to run Perl scripts?

we're trying to get awstats up and running on our IIS6 server. awstats is running fine and generating output and all that jazz... no problem there. When trying to change the selected month/year in ...
eidylon's user avatar
  • 358
1 vote
1 answer
261 views

How do delivery receipt in horde works?

I want to send emails (using perl) using postfix MTA with a delivery receipt like horde does. Some have any idea?
chahedous's user avatar
1 vote
2 answers
2k views

perl mass text replace with literal dollar sign

trying to replace text patterns with dollar signs and ()s, can't get it to work. please help find /var/www/vhosts/prod/xxx/ -name "*.php"|xargs perl -w -i -p -e "s/mysql_fetch_array\($res,...
user12145's user avatar
  • 1,125
1 vote
1 answer
327 views

Why am I getting blank error messages in my Apache error log?

I am running Apache 2.2 on 64bit Windows Server 2008 Std edition with ActivePerl 5.8.9. My error log is filling up with blank error messages like these: [Wed Mar 31 14:08:31 2010] [error] [client 10....
Jason Lamoreux's user avatar
1 vote
1 answer
1k views

Apache 2 - I have webmin running on port 10000...I want it to be accessed the normal HTTP port (80)

Currently I am doing this with the config. NameVirtualHost * <VirtualHost *> ServerName testsite.org ServerAdmin [email protected] DocumentRoot /var/www/ &...
user avatar
1 vote
1 answer
756 views

"perl.exe *32" not releasing memory when spawned by Apache 2.2 on Windows server 2008 64bit

We have a web application that traditionally ran on Windows Server 2003 Std. Ed. 32bit in Apache2.2 with perl 5.8. I am attempting to migrate it to a Windows Server 2008 Std. Ed. 64bit in Apache2.2 ...
Jason Lamoreux's user avatar
1 vote
3 answers
1k views

Why does psql attempt to connect with a different username when run from a Perl script

I have a bunch of Perl scripts that have recently stopped working. I have narrowed the problem down to this: when I connect to a postgresql database from a perl script, it attempts to use the wrong ...
mojones's user avatar
  • 165
1 vote
1 answer
119 views

automatically click cancel button while i shutdown though program in perl

I wrote program to shutdown system automatically in PERL , while shutdown if we open any file the windows asked that the file will save or cancel , my aim is cancel button automatically clicked and ...
user avatar
1 vote
2 answers
1k views

Perl script works with Apache piped logs but not Python script

I need to port my Perl log handling script to Python. Here is a simple example of a Perl script I can use: #!/usr/local/bin/perl $|=1; # Use unbuffered output while(<>) { system("beep"); } ...
Cory Walker's user avatar
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
4 5
6
7 8
12