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 ...

learn more… | top users | synonyms

2
votes
2answers
16k views

Setup Oracle instant client on CentOS/RHEL Linux - for PHP and Perl

I'm trying to setup a CentOS 5.5/64 bit VM to access a remote Oracle database with PHP and Perl scripts. (I have no experience with Oracle, have only programmed and administrated some PostgreSQl and ...
0
votes
1answer
346 views

Perl - Using Net::SNMP::Interfaces to list interfaces of host

How could i get a list of all interfaces on a host with snmp, i am using. use Net::SNMP::Interfaces; my $interfaces = Net::SNMP::Interfaces->new(Hostname => 'localhost', ...
5
votes
4answers
13k views

Munin on Centos 6 - missing perl MODULE_COMPAT_5.8.8

I'm trying to install Munin on a new VPS through yum install munin but I keep getting an error about a missing perl module: Requires: perl(:MODULE_COMPAT_5.8.8). This is the perl version currently ...
2
votes
2answers
544 views

How do I build and configure a local CPAN module repo?

I'm a sys admin administering three air gapped (zero internet access) supercomputers. On one of the supercomputers we need to run Bugzilla. I already built my own local yum repository, but now I ...
1
vote
0answers
647 views

Getting errors from local CPAN configuration on server with no internet

I've been wrestling with getting a local CPAN installed and configured on a CentOS server with no internet access. What I've done so far is this: 1) Made a full rsync of a CPAN directory onto an ...
1
vote
3answers
817 views

How to get password prompt from ssh in Perl script

When I execute this from command line, I get prompted for joe's password (which is what I want): ssh -t 192.168.1.32 'scp joe@192.168.1.31:/etc/hosts /tmp' When I try to run the same command from ...
0
votes
1answer
3k views

cpan perl module warning error

Trying to install multiple perl modules. I've already installed cpan and perl via yum on the centos 6 64bit box I get similar errors as below. CPAN.pm: Going to build G/GA/GAAS/URI-1.60.tar.gz ...
1
vote
2answers
416 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: ...
1
vote
2answers
577 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 ...
0
votes
1answer
119 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 ...
0
votes
1answer
273 views

nginx dynamic servername with regular expression doesn't work for co.uk

I'm trying to setup a nginx server which dynamically loads content from a folder for a domain. To do this I'm using regular expressions in the server name like so: server_name ...
2
votes
2answers
2k views

Exit code 13 from Perl's system() command?

I am trying to call system commands from perl, using system(). That usually works fine, but when I don't start the perl script myself, but have a compiled C program run it using the C popen() ...
1
vote
1answer
915 views

Nagios plugin script not working as expected

I have modified an off-the-shelf Nagios plugin perl script to (in theory) return a one or zero according to the existence, or not, of a file on a remote linux server. The script runs a remote ssh ...
0
votes
2answers
78 views

Optimizing Apache2 for high volume of small requests

I have a Perl script which returns a string, it's very simple and small. It is running on CentOS 6.4 with mod-prefork and mod_cgi via httpd 2.2.15 over SSL. It is the directory index, so when you ...
1
vote
1answer
168 views

Munin mysql plugins results inconsistent, with IPC::Sharelite store() error: Identifier removed

I've recently setup a munin-node on a CentOS server. All was working fine until I tried to add the apache plugin (which works fine). For some odd reason, the mysql plugins for munin that used to work ...
0
votes
2answers
1k views

install_driver(mysql) failed: Unable to get DBI state function. DBI not loaded

I installed OTRS from a rpm and the web installer /orts/installer.pl stops with: Error during AJAX communication. Status: error, Error: Internal Server Error Apache error_log ...
0
votes
0answers
544 views

Setting up Git, Gitweb, Gitolite on a Fedora 19 Server - Getting a '404 - No project found' message

All - I'm getting a 404 - No projects found trying to get a gitweb server up. Git and gitolite work fine, but I can't get projects to show up. Here's my setup: I'm working on getting Gitweb up on ...
0
votes
1answer
379 views

Cacti CLI tools: List present graphs per host

How can I list the graphs for a host, or at the very least the number of graphs? I'm thinking of a condition where I'd add more graphs depending on such output but all I see is to list available ...
0
votes
1answer
363 views

Postfix content filter not passing back message

I'm using a simple content filter to pass off mail to a perl script to encrypt using a pgp key. Master.Cf Under smtp -o content_filter=mail_encrypt:dummy Then mail_encrypt unix - ...
-1
votes
1answer
58 views

perl script running only once on IIS 7 server

I am on Windows 7 (IIS 7). When I run a perl script it works fine once and returns the output to any browser. It takes input from html form and prints the input as text. Upon reload or second run, the ...
0
votes
2answers
1k views

Munin with postgresql 9.2

I am trying to set up Munin to collect stats on a server with postgresql 9.1 and 9.2 (the server is currently running 9.1, have tested on a fresh VM with 9.2 to rule out some weird problem on the ...
0
votes
1answer
378 views

Free Perl for IIS

I'd like to use awstats for website statistics. Is there some free Perl distribution that plays nicely with IIS 7? This is what I've tried: Googling for perl iis yields a lot of tutorials, all of ...
4
votes
4answers
4k views

How can I perform a syntax check on an .htaccess file in a shared hosting environment?

I have a build script (Perl) that modifies the .htaccess file when I deploy my applications. As a double-check, I'd like to be able to perform some sort of syntax checking on the created .htaccess ...
0
votes
1answer
270 views

Hardcoded password vs using `cat` to retrieve from file

I'm using Zentyal (formerly EBox) as my home gateway/server, to evaluate it for possible use in a local organization. I wanted to change the root MySQL password, which I did, and mistakenly changed ...
1
vote
1answer
1k views

Missing perl modules error for properly installed perl modules on FreeBSD 8.3, perl 5.16

Trying to run a Nagios plugin on 8.3-RELEASE-p3, I get the error: Missing perl modules: Net::SMTP::SSL I have rebuilt the ports for both p5-Net-SMTP-SSL and perl5.16. cpan -i Net::SMTP::SSL reports ...
5
votes
3answers
269 views

Is it good practice to just copy Perl modules via RPM?

A few applications on our RHEL6 servers depend on a few Perl modules being present. I would like to add these Perl modules as part of the Kickstart process when turning up new hosts. As opposed to ...
0
votes
1answer
740 views

Monitoring HP Proliant iLO whith perl script in Nagios

I'm trying to monitor an iLO with this script: ...
0
votes
2answers
3k views

How do I install Perl 5.8 and Perlfect on IIS 7.5?

I've got an old website that I need to keep running on a new server - Windows Server 2008 R2 with IIS 7.5. The website uses Perlfect search (http://www.perlfect.com/freescripts/search/), which ...
0
votes
2answers
178 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 - 1week@example.com, or 2days@example.com) and the email address '1week' and '2days' is used to perform ...
0
votes
0answers
85 views

cgi-bin for virtualhosts in apache

Let's assume that I have 2 virtualhosts running for the domains domain1.com and domain2.com. For these domains I set the documentroot to c:\server\htdocs\user\domains\domain1.com and ...
3
votes
2answers
4k views

What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?

I use the ports system on FreeBSD. What is the easiest way to upgrade Perl using ports? I currently uninstall all of perl and it's dependencies. I'd think there would be a cool way to upgrade Perl and ...
0
votes
1answer
148 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 ...
1
vote
1answer
128 views

Self compiled Perl package Centos [duplicate]

I have a Centos 6 server.. I have compiled Perl 5.16 in it (in a non-standard location). Now when I try to install Some package which is dependent on Perl using yum.. Yum tries to install Perl ...
0
votes
1answer
124 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 ...
0
votes
1answer
345 views

linux + exit status from perl one liner code

I use perl one liner in my ksh scripts some times its necessary to get exit status from the perl one liner in order to very if perl one liner succeeded or not for example I need to verify if the ...
1
vote
1answer
298 views

Retrieve Windows Username via SSPI + CGI Perl

I need to retrieve the username of the windows user logged in currently when he is accessing my intranet page. I am trying to authenticate my webpage using SSPI(mod_auth_sspi.so) on Windows Server ...
0
votes
1answer
451 views

How to use abstract names of unix domain sockets with fastcgi in nginx?

I tried some perl examples of unix domain sockets using abstract names: Created a socket starting with a null character: my $socket_path = "\0wibble"; using netstat -nlp I can see the socket: unix ...
0
votes
2answers
837 views

installing MIME::Tools fails with an error in t/Smtpsend.t

System: debian 7 x64 RC 1 Perl Version:v5.14.2 When trying to install MIME::Tools I can't get it to properly compile. cpan[4]> install MIME::Tools Going to read '/root/.cpan/Metadata' Database ...
0
votes
1answer
303 views

Automatically prepend executable Perl scripts using .htaccess (like php_value auto_prepend_file)?

I have previously built sites using PHP, where I automatically included header and footer html using the following lines in .htaccess on an Apache host: php_value auto_prepend_file ...
0
votes
1answer
555 views

Linux how to run a script in the background on a remote server? [closed]

I'm on a linux machine. I would like to run four perl scripts on a remote server. Each script produces a single output file but it can take hours to run. I would like to run the scripts in the ...
-1
votes
1answer
274 views

Apache errors - *** glibc detected *** Backtrace - perl

I have been getting these errors in my apache logs on my server - it only happened once a day or every two days. Any idea what could be causing this? I dont even have an idea of where to start? *** ...
0
votes
1answer
72 views

command in perl script not working

When I place this command in a perl script, it won't work: `chkconfig --level 3 nslcd on`; But if I execute it on a linux command shell, it works. [root@barf Scripts]# chkconfig --level 3 nslcd on ...
0
votes
1answer
1k views

Sendmail Spamming Recipient

I am using a perl script to send daily status to my gmail account. For some reason, sendmail seems to be spamming gmail although I am only sending one email Gmail is complaining about a failed ...
1
vote
1answer
1k 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 ...
0
votes
1answer
851 views

Need equivalent of command with nmap, awk and grep for Windows machines with PowerShell and/or Perl

Please see this thread for reference How can I scan using nmap and Zenmap all hostnames that begin with a particular string? One of the answers in the thread above uses the following query (I take ...
0
votes
1answer
297 views

Net::FTPSSL Perl module rename does not work

I'm using the Perl module Net::FTPSSL and 'rename' does not work, everything else does. I've verified the file is there and I can rename it using gui based ftp client but not through the Perl module. ...
1
vote
6answers
3k views

How to find directories that contain only one file?

Does anyone know how to search through thousands of subdirectories for all directories that contain only 1 file and not more than 1 file? Any suggestion on what tool to use or an easy code snippet?
-3
votes
1answer
241 views

What does fork() mean in Perl? [closed]

I have a block of Perl code. I'm having some trouble understanding the same. if(my $child = fork()) { #Do somthing } else { #Run system command return; } Could anyone please make me ...
1
vote
1answer
334 views

How can I run a Perl script in a different timezone?

I need to run a Perl script, but make it think that it is in a different timezone (GMT) than the server is configured to use normally. I would like to do this without modify the existing script, by ...
0
votes
2answers
76 views

Modules to protect PHP and Perl from accessing other users file/data? [closed]

I've use to use a combination of suPHP with suExec in order to try to protect the users and limiting the PHP/Perl from running out of their allowed space (i.e.: user/tmp folders). Its been a while ...