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
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
  • 1,013
0 votes
1 answer
827 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 ...
Adriana Valencia's user avatar
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 ...
Curious student's user avatar
0 votes
1 answer
293 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 "...
kinezana's user avatar
0 votes
1 answer
331 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 ...
user1960364's user avatar
0 votes
1 answer
457 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/...
rahrahruby's user avatar
0 votes
1 answer
182 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 ...
Andrew Newby's user avatar
  • 1,154
0 votes
0 answers
309 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 ...
tomsk's user avatar
  • 297
0 votes
0 answers
298 views

PATH_INFO missing on nginx + apache2 proxy pass setup

I'm trying to work out why $ENV{PATH_INFO} is empty in a Perl script on my new server. This is my nginx configuration: location ~ \.cgi$ { try_files $uri =404; gzip off; ...
Andrew Newby's user avatar
  • 1,154
0 votes
1 answer
1k views

OTRS Installation on AWS Linux AMI results in 500 Internal Server Error page

I am creating a new instance of OTRS on Amazon Linux AMI 2017.03.0 (HVM) and cannot get the installer.pl to run. My installation steps are as follows (and I've done this about four times so far): Set ...
Scott's user avatar
  • 70
0 votes
2 answers
2k views

check_vmware_api.pl can't be launched

I'm trying to use the script check_vmware_api to get informations of my esxi but I get the following error: [root@centreon plugins]# ./check_vmware_api.pl Can't locate Monitoring/Plugin/Functions....
user396019's user avatar
0 votes
1 answer
523 views

amavisd-new freezes: "Address already in use"

I have a mail server setup running on my Debian Jessie VPS which includes postfix, amavisd-new, SpamAssassin and a few other services. All in all it seems my setup works pretty well and handles ...
randomnickname's user avatar
0 votes
1 answer
445 views

Collectd is not working on centos 7.2 azure vm

I have a freshly install collectd on a new Centos7.2 64bit . I followed the instruction based on the below link https://devops.profitbricks.com/tutorials/how-to-install-and-configure-collectd-and-...
kumar's user avatar
  • 349
0 votes
1 answer
772 views

check_esx.pl doesn't work

I try to execute a shinken plugin: /var/lib/shinken/libexec/check_esx3.pl. It fails. error CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://dc-srv03.rthd.intra:443/sdk/vimService.wsdl'...
The Redbaron's user avatar
0 votes
0 answers
261 views

Ubuntu hangs while running make test in IO Socket ssl

Hello I am running ubuntu 14.04 and perl version 5.23.9 (compiled) When I try to build the IO::Socket::SSL module , the machine always freezes. So I installed the module manually. Download from ...
Ram's user avatar
  • 227
0 votes
0 answers
35 views

Fake httpd process masked under perl execution [duplicate]

I have apparently malicious php script somewhere in my webserver, Debian 8.3, Apache 2.4 Legal Apache process can be seen like this: 16169 www-data 20 0 482156 59180 41952 S 7.3 1.5 0:01.08 ...
almiralower's user avatar
0 votes
1 answer
735 views

SSH to ESXi server with Expect immediately closes

I am writing a VM deployment tool that needed to start VMs on an ESXi server. To do this I am using Perl's Expect module to spawn an ssh client to connect to the server and use vim-cmd to manage the ...
efunneko's user avatar
  • 285
0 votes
2 answers
176 views

View what file started a process in linux

One of my servers started sending spam in heavy amounts. The server is using ISPConfig 3 and one of the web users most likely has a security breach. I have identified the user and one file somehow ...
Alex's user avatar
  • 1
0 votes
1 answer
2k views

Change NFSEN to poll and graph every 30 seconds

I am asked to modify a default clean nfsen-1.3.6p1 install to to collect and poll every 30 seconds. I "patched" libexec/NfSenRC.pm's nfdump command arguments that it uses to -w -D -t 30 -p $port -u $...
Recct's user avatar
  • 370
0 votes
0 answers
166 views

FastCGI: manager (pid YYYYY): server (pid XXXX) exited with status 13

FastCGI: manager (pid 6776): server (pid 20254) exited with status 13 FastCGI: manager (pid 6776): server (pid 18918) started FastCGI: server (pid 18918): initialized I am getting above mentioned ...
Hardik Joshi's user avatar
0 votes
1 answer
496 views

Sending mail from perl applications with SSMTP

I am on host-server with Centos 7 and KVM virtualization. I have 2 guest systems which are in routed virtual LAN. One of them is WEB server, the other is a mail server. Web server has hostname example....
tester3's user avatar
  • 165
0 votes
0 answers
1k views

Where does Apache get the value for Perl @INC?

I run Apache2 server on Debian, user is set www-data and also group is www-data. When I run Perl CGI-scripts I noticed that their @INC differs from scripts I run from command line as same www-data-...
wk.'s user avatar
  • 281
0 votes
1 answer
179 views

Perl Section in Apache config don't work

I have installed mod_perl on my server via yum to make use of Perl sections in the Apache config. I'm running Apache 2.2 on CentOS 6. I installed the necessary Perl modules (DB2 driver mainly) via ...
Martin Müller's user avatar
0 votes
1 answer
1k views

Installing mod_perl 2 on Apache2 fails

I'm trying to install mod_perl 2.0.8 on a fresh installation of Apache 2.2.27 / RHEL 7. Apache was built from source and installed to /usr/local/apache2. I then installed mod_perl with MP_APXS=/usr/...
BIfrost's user avatar
  • 11
0 votes
0 answers
68 views

Server serves old cache/memory/data with linkchecker agent

I'm using the perl script below to fill the cache/memory of the server by visiting all the links with the wget command and the linkchecker agent to check for broken links. When I run it it keeps ...
Maykel Boes's user avatar
0 votes
0 answers
293 views

Red Hat Network API connection

I'm creating a perl script that connects to the RHN, however I seem to be struggling. The code I have is this: #!/usr/bin/perl use Frontier::Client; my $HOST = 'xmlrpc.rhn.redhat.com'; my $client =...
forquare's user avatar
0 votes
1 answer
690 views

masquerade an URL with proxy SSL or other methods

good day dear server experts I would like to be able to masquerade an URL, that is to keep the URL the user is entering when going to a page. For example: The user is entering at his browser: ...
zero's user avatar
  • 159
0 votes
2 answers
8k views

Cpan module install fails

I am trying to install the Inline::MakeMaker Perl module (including Inline::C), but it fails when installing Inline::C (seems it cannot find "make", though make is installed under /usr/bin). This ...
Jim Balo's user avatar
  • 270
0 votes
1 answer
269 views

Safety of concurrent samba writes and perl move

I have samba (3.6.3-0.30.1-2920-SUSE-CODE11-x86_64) running on a SLES11 server which receives files from a Windows machine. The samba share is actually a NFS mount from an other server, and I need to ...
Calimo's user avatar
  • 410
0 votes
1 answer
418 views

mod_fastcgi.so + FCGI (perl) make 500 error with graceful restart on apache 2.2

We'd like to construct a perl (FCGI) application on apache2.2 with mod_fastcgi.so but it makes 500 error when I graceful it. Do you have any idea or solution for it? LoadModule fastcgi_module ...
freddiefujiwra's user avatar
0 votes
2 answers
364 views

How to process incoming email sent to a catchall address (and a few valid email addresses)

I need to build a web application where people can send an email to custom email addresses (like - [email protected], or [email protected]) and the email address '1week' and '2days' is used to perform ...
siliconpi's user avatar
  • 1,817
0 votes
1 answer
169 views

perl Net::DNS weird error (root servers "did not give answers")

I'm trying to install Net::DNS as part of setting up ASSP Deluxe. I've installed my own 5.14.1 perl on a CentOS box, and when it tries to 'make test' Net::DNS, I get: Servers [202.12.27.33 193.0.14....
raindog308's user avatar
0 votes
1 answer
884 views

Remove text between delimiters in linux [duplicate]

Server got hacked and a fair amount of files were edited. We noticed that the code that was inserted were typically done between delimiters (e.g. /*e21234*/ blah blah /*/e21234*/). What is the most ...
user40570's user avatar
  • 155
0 votes
1 answer
230 views

MySQL creds accepted from CLI but not from Perl DBI [closed]

I have a remote MySQL server. I can log in from the client machine using: mysql -h 172.16.0.7 -u mysqlUser -p and it connects fine. When I use a simple DBH connection in Perl, with same credentials,...
user157518's user avatar
0 votes
1 answer
169 views

narrowing why server post from perl web app fails on ec2

Update: I corrected the below permission issue and I can read the log files dancer generates. There was a small code bug, fixed. So now the logs display nothing, but my POST request still just fails ...
gideon's user avatar
  • 1,145
0 votes
1 answer
130 views

Linux/Solaris verification ( after hostname change ) in files according to hostname rule

According to the following Perl command ( this command part of ksh script ) I can replaced old hostnames with new hostnames in Linux or Solaris previos_machine_name=linux1a new_machine_name=...
yael's user avatar
  • 2,473
0 votes
3 answers
2k views

How can I forward email to a perl script on Linux?

I would like all mail sent to a particular alias on a Linux machine to be processed by a perl script but sendmail is giving me a "Service unavailable" error and I don't understand what I'm missing. I ...
Graeme Perrow's user avatar
0 votes
1 answer
145 views

Server Performance

I know very little about performance tuning of servers etc... so i thought i'd put this up here as i start some research on it, just to get some direction. I am in the process of migrating from my ...
sb12's user avatar
  • 101
0 votes
2 answers
420 views

Dynamically set current domain in nginx with perl module

I know how to set variables and use subroutines with the nginx builtin perl module INSIDE a "server" directive but, what I need to do is to set/rewrite the current domain before. Let's say, we have a ...
Simone Margaritelli's user avatar
0 votes
1 answer
258 views

perl dbd::mysql cant install (from asterisk perl script)

I ve got problem with perl script for asterisk. I've investigate that when tping use DBI; -- all statcks. After that i added: my @driver_names = DBI->available_drivers; foreach (@driver_names){...
MealstroM's user avatar
  • 1,517
0 votes
1 answer
1k views

Mod_Perl AddType .pl execution on apache

I've recently been using PHP via mod_php, and I assumed that getting mod_perl running properly was going to require a similar setup: AddType application/x-httpd-php .php unfortunately this does ...
Hawken's user avatar
  • 295
0 votes
1 answer
2k views

Check_webinject plugin will not connect to https site using

We're using Nagios to monitor some of our web sites. We have a script that uses the older plugin that we are trying to switch to using webinject.pl from cpan. When the script runs, it generates this ...
uSlackr's user avatar
  • 6,432
0 votes
1 answer
1k views

Accessing Bugzilla return internal server error

I tried to install Bugzilla 4.2.1 to an Amazon EC2 with Amazon Linux OS. I have installed all the necessary perl_modules from the EPEL repo, and configured httpd and mysqld. But when I try to view ...
Peter's user avatar
  • 3
0 votes
1 answer
116 views

Modify apache 2 to use different Perl instance

I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work. Any ...
lupin's user avatar
  • 1
0 votes
1 answer
67 views

what is DDODBC.DAT

The file /var/local/odbc/DDODBC.DAT is being created/accessed on some (not all) servers when the database is accessed via Perl dbi:ODBC. I did a full crawl through /var/local/odbc on a server that ...
Christopher Neylan's user avatar
0 votes
1 answer
249 views

ksh + print the last value from parameter ( as $_ in perl)

I need advice - how to print the same last value in ksh scripts without to print param argument for example in perl last value is $_ , but we not have this option in ksh script example - of ksh ...
Eytan's user avatar
  • 611
0 votes
1 answer
731 views

Why would a UDP socket perform OK on wifi, but not on a cell network?

Noobish question - I have a perl script running on a linux server which opens UDP port 7015. netstat -ulnp shows: udp 0 0 0.0.0.0:7015 0.0.0.0:* ...
softex's user avatar
  • 3
0 votes
2 answers
1k views

SciLinux6 perl Test::Trap and Tk installation...how?

A more or less fresh install of SciLinux 6: [CODE] $ cat /etc/redhat-release Scientific Linux release 6.0 (Carbon) $ uname -an Linux bigbox.em.local 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12 17:14:...
user52874's user avatar
  • 829
0 votes
2 answers
1k views

Why cant Perl find my Curl library?

I created a new module using h2xs which built a module tree for me and a bunch of files. Git as far as running make test but then make failed saying it couldnt find WWW::Curl, but I had installed ...
qodeninja's user avatar
  • 2,783
0 votes
1 answer
124 views

How to interpret .pl with mod_perl instead of cgi?

I'm now configuring Apache this way: AddHandler cgi-script cgi pl So that .pl will be interpreted as CGI script. How can I make it run as mod_perl instead?
linux's user avatar
  • 1,263

1
8 9 10
11
12