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
3k views

Strawberry Perl libeay32_.dll problem

I've installed Strawberry Perl (v5.12.3) on Windows Server 2008 32 bit and I was hoping to run simpledb CLI tools. I had a small issue with HOME environment variable, I renamed it to HOMEPATH to ...
2
votes
2answers
1k views

Restarting a Perl-script (socket daemon) from /etc/inittab

I run a small multiplayer card game with around 500 users at peak times: The client is in Flash and the server is in Perl. The Perl server binds to port 8080, i.e. only 1 instance of it can be ...
2
votes
2answers
1k views

Apache returns the perl script source instead of execute the script when the request comes from chrome

I've just finish to install awstats on my web server, and it runs fine using firefox. But when I try to open the awstats page with chrome, the perl source script is downloaded (instead of being ...
2
votes
1answer
807 views

How do I configure OS X's built-in Apache server to use FastCGI?

I want to serve a FastCGI based Perl script using Snow Leopard's built-in Apache server (2.2.14 apparently). I've heard something called MacPorts is required; which is some sort of 'apt'-like package ...
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() ...
2
votes
1answer
422 views

How could I set up perl 5.10.1 on a Debian Lenny machine to be the default perl for all users (except for root and system processes)?

I am going to create a new Virtual Machine running Debian Lenny. I want to install the latest stable version of Perl (5.10.1) such that all non-root users would use it by default. However, I don't ...
2
votes
1answer
476 views

Error trying to get munin running as a cgi

I'm just cutting my teeth getting munin running (latest 1.4.1 on centos) . It's working but I want it as a cgi frontend so I'm not generating graphs constantly when I look at them a few times a day ...
2
votes
1answer
810 views

How to configure Nginx to serve a variety of back-ends via multiple FCGI processes?

I've seen a lot of tutorials showing one how to set up PHP/Python/Perl/RoR on nginx via various FCGI processes. None of the tutorials that I found show one how to serve multiple FCGI services off one ...
2
votes
1answer
223 views

Not able to execute cgi script getting muxserver_listen bind(): Permission denied

When i run a perl CGI script from browser it gives below error in apache error logs. It is not getting response from server. While i run my script from command prompt it works fine. I am using below ...
2
votes
0answers
294 views

Nginx & fcgiwrap, logging perl errors to error log

This is similar to this question, which got no responses: How to debug CGI over fcgiwrap/nginx How do I get perl errors to be automatically placed in the nginx error log? Right now, when there is any ...
2
votes
0answers
532 views

Strange Apache/PHP&Perl behavior—error (70007)

I’m dealing with a particular strange situation: I have two Linux machines, one with Scientific Linux (v4.8) and one with CentOS (v6.2). On the SL machine I have a XAMPP distribution with Apache ...
2
votes
1answer
1k views

Calculate average of every 5 samples with rrdtool or other languages

I want to make an average of 5 samples and calculate a single value: Current output - I put resolution of 5 minutes but receive 5 samples: $ rrdtool fetch file.rrd AVERAGE -r 300 --start 1200000000 ...
2
votes
0answers
242 views

Can't get NetSNMP agent to answer using my prorietary MIB

I have to add a proprietary MIB to debian's snmpd that I must be able to query (get and set) from another networked computer on a non-standard UDP port (network aspects will be a further step). I ...
2
votes
2answers
17k 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 ...
2
votes
2answers
9k views

IIS 7.5 on Windows Server 2008 R2 refusing to create PASSIVE MODE FTP connections

I'm attempting to get an FTP client written in perl to transfer files from an IIS 7.5 FTP server using passive mode. I've configured the FTP server as per instructions and have also configured ...
2
votes
2answers
580 views

server hang-up; no response, but no disconnections either

Greetings Experts, System: standard gentoo install with not much more than postfix. I was in the middle of a big IMAP-driven email-migration last night (a bunch of Perl scripts) when the new mail ...
2
votes
2answers
444 views

Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed

So, I'm new to CGI / Perl, I'm trying to move a perl-based web app to a new server. My new server is CentOS 7, which runs Apache HTTPD 2.4.6. I'm trying to get a basic Perl CGI working from an HTTP ...
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?
1
vote
9answers
6k views

Dependency Challenge with CentOS

Given the following output, suggestions on what to try first? This is on a CentOS 5.3 box (upgraded from 5.2 via yum) running as a little dev server. I'm generally comfortable with *nix, but ...
1
vote
5answers
3k views

Silent and scripted install of CPAN and Perl modules?

I need to install CPAN and some Perl modules automatically in a Scientific Linux (RHEL) installation script. Unfortunately the specific modules I want (at least one of them) cannot be found as RPM:s ...
1
vote
4answers
876 views

How can I check the location of perl and CPAN files?

I constantly have to set up new servers for an employer of mine for an exact purpose of his, and as such they all have to be set up in exactly the same way. So I've created a script in PHP that I run ...
1
vote
2answers
3k views

What to do if bash scripts come with an incorrect interpreter path?

I'm trying to install BugZilla on our server. The issue is that perl scripts of BugZilla define the path as /usr/bin/perl, and my perl installation is located at /usr/local/bin/perl. I've had this ...
1
vote
2answers
1k views

How to call perl from crontab?

I can run this command fine from the SSH console of my rackservers shared hosting: cd /home/myaccount/public_html/whatever; perl -w -I/home/myaccount/public_html/whatever rss2txt.pl ...
1
vote
3answers
912 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 ...
1
vote
1answer
358 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 ...
1
vote
3answers
361 views

find files with non-zero size in shell

I need to get a list of names of files with non-zero size inside a directory. This should be in a shell script, so bash (or a Perl one-liner) would be ideal.
1
vote
3answers
648 views

Calling sudo within a script that was called with sudo prompts for password even with NOPASSWD

A PHP program I am working with (LConf) calls a script using sudo. I have allowed the user apache to run the script and have tested with sudo -u apache /usr/local/LConf/lconf_deploy.sh. I am being ...
1
vote
4answers
955 views

SSH key based authentication in Perl server

I have a server written in Perl that clients connect to in order to perform some management tasks. Without going into details I would like to achieve two things: encrypt connection channel between ...
1
vote
3answers
200 views

What kind of backup plan do I need for installing perl modules in production?

I manage an application that has been rode hard and put away wet over the years, but is still expected to continue to work. The server OS has been maintained, but the Perl instance has not because ...
1
vote
3answers
804 views

Perl missing while installing nginx on centos

I am trying to install nginx on my server, however it keeps returning "./configure: error: perl 5.6.1 or higher is required" eventhough I have perl v5.8.8!!!! I have already downloaded perl and ...
1
vote
1answer
62 views

perl + ignore “/” char in perl

I want to replace the string America/Adak with America/Jamaica by: perl -i -pe "s/$A/$B/" /etc/sysconfig/clock please advice what need to update in the perl syntax ? ( the problem is that ...
1
vote
2answers
339 views

Is PERL a must on LFS? [closed]

I am building LFS, and I am wondering about building PERL. Call me narrow minded, but I really want to try going on a Linux system without PERL, and have everything implemented in Python. Since I ...
1
vote
4answers
675 views

How to force Perl use /bin/ksh instead of /bin/sh?

I am migrating from AIX to Solaris 10, but the version of /bin/sh there is so old, that our scripts does not work. Can I somehow force perl to execute commands in `` via different shell (in my case, ...
1
vote
5answers
691 views

Writing a Linux Service

I would like to write a Linux service using PERL, but don't know how to do. (I know perl) I have a MySQL database, and need to check it for new records, so I can process them. The service should ...
1
vote
5answers
4k views

Unable to install Perl Crypt::OpenSSL::RSA module, please help

I spent several hours but unable to install CPAN Crypt::OpenSSL::RSA module. It's required for Postfix's dkimproxy add-on. What I do is to run the following command in the shell: $ perl -MCPAN -e ...
1
vote
2answers
409 views

VMWare perl toolkit download

I seem to be finding it far harder than is reasonable to find a recent copy of the VIPerl Toolkit to download. There's a copy on sourceforge, but that's marked as beta and dated 2007. There are ...
1
vote
2answers
10k views

Can't locate Config/IniFiles.pm in @INC (@INC contains:

mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM's snapshot feature to do so. Following are the error I had when I tried to execute the mylvmbackup perl script. How can I ...
1
vote
1answer
64 views

Using “at” to call a delayed process from within a cgi script

Here is a puzzle I hope you can help me with. A client wants to send a welcome letter exactly 47 minutes after a document is uploaded via cgi script. I wrote a routine to send the letter, and then I ...
1
vote
1answer
2k views

Install LWP Perl module on debian + Others

I'm just wondering if anyone can tell me how you install the following perl modules on debiab : install LWP install DBI install DBD::mysql install GD I tried with CPAN although when I ran perl ...
1
vote
2answers
438 views

How to install Perl Power Tools on Windows

Are the Perl Power Tools still around? I'm trying to install them on Windows Server 2008 with Strawberry Perl. If I search the web I get: http://sourceforge.net/projects/ppt/ as first link, where I ...
1
vote
4answers
673 views

Authoritative DNS with default response

I need to setup an authoritative DNS for 500K zones. About 90% of the zones are identical (except for the domain name of course). I have only found PowerDNS appropriate for this task - using Pipe ...
1
vote
3answers
753 views

Perl: How to sync files with ftp server

I'm looking for a way to sync a local folder with a remote folder that is only accessible with FTP. Is this possible in Perl or is it possible by calling a System-command in Perl ? I'm in a Windows ...
1
vote
4answers
4k views

Perl in place edit within a script

I need to edit a file in place within a perl script, so the oft used one liner: perl -p -e s/<value>/<value>/ig will not work for this situation. How do I get the same results from ...
1
vote
1answer
789 views

query 2003 dhcp leases

Can I query my windows 2003 dhcp server from my windows xp in order to get the ip address if i have the mac address or otherwise.
1
vote
4answers
645 views

Perl 5.10 logon/logout scripts

Given a mixed environment of Windows servers, Linux (RHEL5) servers, and XP clients, can anyone foresee benefits and/or problems attempting to use Perl 5.10 for logon/logout scripts? Thanks. Using ...
1
vote
1answer
43 views

FC14 and yum dependancies

I've got my hands on an FC14 machine and I've been trying to get yum working on it over the past couple of days. The machine (which is an appliance) shipped with a conflicting package to ...
1
vote
2answers
247 views

Making a user account dedicated to a single script in centos

I am trying to make a SSH login for someone on my box. But when they login I want it to auto load a perl script and for them ONLY to be aloud to see / use that perl script. I only know how to use ...
1
vote
2answers
2k views

Can't install Perl DBD module on Ubuntu (for Bugzilla)

Trying to install bugzilla-4.2.2 on Ubuntu 12.04. When I run checksetup.pl I get the following error: YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database you use): PostgreSQL: ...
1
vote
2answers
2k views

What's wrong with this installation of Net::SSH2 Perl module?

I am trying to install Net:SSH2 Perl module, but I run in this error: [root@script-server fmzbih_cms_weather_updater]# cpanm Net::SSH2 --> Working on Net::SSH2 Fetching ...
1
vote
5answers
5k views

Removing perl module installed with cpanm

I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to my ...