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
1answer
805 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
131 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
182 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
461 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
815 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
214 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
872 views

Run a perl script as a windows 7 service

I have a perl script which is compiled using pp, to be run as a windows service on windows 7 machines. I looked at the thread http://www.perlmonks.org/index.pl?node%5Fid=230377 but of little use ...
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 ...
2
votes
2answers
574 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 ...
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
2k 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
625 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
704 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
283 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
246 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
588 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
886 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
178 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
748 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
2answers
312 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
612 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
651 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
381 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
8k 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
61 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
2answers
415 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
573 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
731 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
755 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
630 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
42 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
199 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
4k 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 ...
1
vote
2answers
1k views

How to tell is apache is configured to use perl?

I've spent enough time looking around for answers to this with google and I give up. Plenty of discussions about how to build apache with perl support but I want to find out how to tell if the apache ...
1
vote
3answers
638 views

How to use Apache Piped Logs to regex replace out unwanted data in logs in real time?

I have https_acces_log log files being generated by Apache that a certain web app is logging unwanted data into the file. I can't stop the app from logging the data, so I'd like to write a ...
1
vote
2answers
197 views

Script output differing from output when command is run manually [closed]

I'm fairly new to things and I've been writing a simple Perl script to poll a server for iostat -k -x data every few seconds using capture from Capture::Tiny The script works, however the data being ...
1
vote
1answer
943 views

Perl, Solaris: CPAN module install failed. How can I find out why?

I'm trying to install the File::Tail module using CPAN an older Solaris 10 (SunOS 5.10) box. I get an error when trying to install the module, but I see no indication why this failed anywhere in the ...
1
vote
2answers
1k views

How to apt-get perl module “Template”

I'm installing Bugzilla and thus I"m working through a list of perl modules to install. I've managed to get a lot of them up and running except for the below Template module. Is there a apt-get ...
1
vote
2answers
205 views

Using a regular expression (perl?) on a MySQL DB

I have a MYSQL DB and I need to do some text manipulation on one of the fields. This is a one-off, not an ongoing process. The built in MySQL text manipulation functions will be a nightmare to do ...
1
vote
2answers
251 views

HTML pages getting 'cut off' CGI/Perl

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by ...
1
vote
1answer
48 views

postfix parameter default_privs

I have set default_privs=myuser in main.cf, which is a perl script, executed in the context of this user. In the perl script I added some debug to print out the user: my $exec_username = ...
1
vote
2answers
1k views

imapsync - Authentication failed

I've deployed many Google Apps accounts and have used imapsync a number of times to migrate accounts to Google Apps. This time however, no matter what I try imapsync refuses to work claiming my ...
1
vote
1answer
136 views

Postfix header_checks syntax (POSIX - Perl)

I am using header_checks in Postfix to rewrite my headers (for emails sent by Outlook through my server). Here is the part of the header I am trying to change : Received: from Raphasus ...