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
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 ...
0 votes
6 answers
3k views

bugzilla not seeing Email::MIME

I am trying to install bugzilla and I keep getting the error that the required module Email::MIME is not found. However, when I run the install command I get: /usr/bin/perl install-module.pl Email::...
1 vote
1 answer
224 views

scilinux6 (rhel6) perl pathing question

Working on SL6. [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:50 CDT 2011 x86_64 x86_64 ...
1 vote
1 answer
155 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 ...
3 votes
1 answer
10k 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
1 answer
491 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: ./...
7 votes
4 answers
2k views

Script to automatically install packages

I want to write a bash or perl script to install a number of packages on my debian based machine. I want it to be something like : aptitude install package1 aptitude install package2 But, I do ...
1 vote
1 answer
906 views

Migration of Xen domains using libvirt API and perl failing

I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is): - debian squeeze - xen-hypervisor-4.0-i386 - libvirt (1st server - 0.8.7 and 2nd server - 0.8.3) In ...
2 votes
8 answers
2k views

How to run a cron job?

I have a sample perl script which i need to run using cron daily ,could any one let me know the exact syntax to use cron job. Thanks in advance.
6 votes
7 answers
9k views

What is the simplest, open-source webmail frontend available?

I am working on a project to create a few extremely stripped down interfaces for common Web/Internet tasks in order to make computers accessible to my visually impaired grandmother. Currently she uses ...
2 votes
2 answers
2k views

How to use sed, perl to rename files and its contents with a particular pattern in a given directory?

Given a directory "Centos1" which has few files named Centos1.x, Centos1.y, Centos1.z and these files also has "Centos1" in their contents. Using a single command ( using find, sed, perl -pie ) how ...
3 votes
1 answer
190 views

Set top level directory to be handled by Perl?

I have an Apache server set up to use mod_perl. I have it set up to handle all requests using a Perl module MyModule. Here is part of my httpd.conf: LoadModule perl_module modules/mod_perl.so <...
4 votes
3 answers
3k views

Make error when compiling Perl 5.12.1 (RHEL 5.5)

I am trying to compile Perl 5.12.1 in my home directory on Red Hat Enterprise Linux 5.5. However, when I try to make, I eventually receive the following error: Making IO (all) make[1]: Entering ...
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?
4 votes
3 answers
16k views

cpan modules search from the command line?

If I'm not wrong the first step to start with the command line with cpan is next # perl -MCPAN -e shell but I don't know what I should do for looking a module, can you help me, what should I write ...
0 votes
1 answer
728 views

Does anyone know a way to interact with HP OV(NNM) with python, perl or bash?

Do anyone know if there is out there any API/library to access NNM database from perl or python? We have a NNM 7.53 which give us access to its data with its java based applet through http. And of ...
1 vote
3 answers
1k 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 perl/...
0 votes
2 answers
2k views

Perl script that will remotely ssh to linux and get memory status back to my machine

I need help. I have Linux box (openSUSE 11.4); writing Perl script (Perl 5, version 12). My script should SSH to the remote Linux machine and get back with the memory results. So far, I have SSH ...
1 vote
2 answers
351 views

Odd behaviour of gettimeofday on RHEL5 server

I'm experiencing very odd behaviour from Time::HiRes on RHEL5. Since Time::HiRes is in the Perl standard installation, and is basically a wrapper around the gettimeofday system call, I'm inclined to ...
3 votes
4 answers
7k views

Why does mod_fastcgi in Apache complain that it does not have permission to create server?

This is a very old FastCGI issue but I have never found a satisfactory answer. Searching the phrase "(13) permission denied fastcgi can't create server" on Google will show that there's a lot of ...
1 vote
1 answer
420 views

Not able to install Statistics::Basic on RHEL5

I am trying to install the perl module Statistics::Basic::Mode on a RHEL 5 system and am having issues. I have tried MCPAN and RPM. Here is the result of running sudo perl -MCPAN -e shell > ...
0 votes
1 answer
918 views

Accessing UNC paths from inside Perl CGI under IIS6

For space reasons, we need to move some files off our main file/webserver to another network fileserver. However, the original file/webserver is still responsible for providing access to these files, ...
3 votes
2 answers
3k 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 ...
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 ...
2 votes
1 answer
2k views

HAProxy perl plugin and Net-SNMPd on Ubuntu 10.04

I am trying to monitor HAProxy states through SNMP. There is a haproxy.pl file for use with NetSNMP which I've copied and set up in snmpd.conf according to /usr/share/doc/haproxy/contrib/netsnmp-perl/...
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 ...
0 votes
2 answers
314 views

calling an environment variable in a ps-watcher config file

I am trying to use ps-watcher to monitor my system and make sure a given number of worker threads are working on a task. If I hard code the number of workers into the config file for ps-watcher, it ...
3 votes
2 answers
1k views

Is installing perl5.10 on CentOS 5 by rebuilding the Fedora source rpm's a good idea?

Is installing perl5.10 on CentOS 5 by rebuilding the Fedora source rpm's a good idea? Also, isn't is bad that CentOS still does not support perl 5.10 after so many years?
0 votes
1 answer
314 views

problem after upgrading perl

I've upgraded perl which is install in /usr/local/lib/perl5/...... Previously old version of perl was installed in /usr/lib/perl5/ Now when i installed spamassasin its locating for the old location ...
6 votes
3 answers
9k views

Perl 5.10 on CentOS 5?

I would like to run some perl-scripts on my server that require perl 5.10. Perl 5.10 seems to be released many years ago and is still not available for CentOS5. In #rhel I was recommended to install ...
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 (...
0 votes
1 answer
156 views

Protect against silent1.pl Perl Script

I operate a small shared hosting area. While I notice that people are unable/struggle to exploit with PHP I have found a small minority of people using Perl in order to obtain server information. So, ...
2 votes
2 answers
2k views

Scheduling a Perl script with output redirection

I'm trying to schedule a Perl script to be run from the Windows task scheduler and have the output be redirected to a text file. This seems straight forward, but it's not following the redirection, ...
0 votes
2 answers
6k views

How do I list the absolute path of running processes? [closed]

I had a problem recently, where a perl script was consuming server resources. I found out it was a perl script by using "top". But it didn't give the path to the script. Nor did "ps". Is it possible ...
2 votes
1 answer
8k views

How do I configure nginx's embedded Perl to use Perl modules?

I have configured nginx to use a specific version of Perl. $ sudo /opt/nginx/sbin/nginx -V nginx version: nginx/0.8.54 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-46) TLS SNI support disabled ...
6 votes
2 answers
17k views

CPAN fails to install DateTime module

I tried to install the Perl DateTime module by running "cpan" and typing "install DateTime" at the prompt. After a lot of processing and printing I got this message: Compilation failed in require at ...
2 votes
1 answer
2k views

mod_fcgid, perl script output going to apache error_log

I'm trying to get an old Perl script running again after installing mod_fcgid. I had to install mod_fcgid for a new client, but it seems to have broken some of my other cgi scripts. When going to ...
1 vote
3 answers
90 views

Processing perl CGI on external server from web server

I have a web server (IIS) running perl. Is there any way to offload the perl processing to an external server? For example, I have server_a with various sites that may include perl CGI scripts. I ...
0 votes
1 answer
54 views

Is there a Perl/PHP/Ruby/Other webtop-like filemangager platform?

EDIT: Is there a web based file manager / Workspace similar to EyeOS but uses Unix authentication and allows them to edit their files? If that makes sense? Thanks. It'd be awesome if something like ...
2 votes
2 answers
3k views

Apache2 - setting PERL5LIB via SetEnv under CGI

my setup is as follows: I have one Apache2 webserver running different vhosts, one vhost is for the production website, the other vhost is for a staging / preview system. Both vhosts have different ...
-1 votes
2 answers
3k views

How to find Memory details using kstat on SunOS

With reference to my previous post "SunOS free command" I need help to find the memory details using kstat command on sunOS. I will really appreciate if anyone can help me with a perl script.
0 votes
2 answers
432 views

Bugzilla random lag and CPU usage

Here is the configuration : Bugzilla (3.4.2) application running on a Ubuntu server 8.04 with Perl 5.8.8. Here is the problem : Sometimes (randomly), pages take very long to load. It can be any of ...
1 vote
2 answers
698 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 ...
0 votes
1 answer
1k views

Forking and memory allocation question

I have inherited a Perl script that runs on an EC2 instance which basically crawls a bunch of URL's for data (aka scraping). The way this script is invoked is via a shell script that forks multiple ...
1 vote
1 answer
632 views

mod perl in apache 2.2 not parsing perl scripts

I've set up a fresh Apache 2.2.15 server on windows server 2008 R2 with mod_perl (mod perl v2.0.4 / perl v5.10.1). Mod_perl and Perl 5.10 has been installed and loaded without problems. However, ...
1 vote
3 answers
2k views

using perl how can i automte login to remote linux host using ssh

currently, i have statements like : system("ssh -o StrictHostKeyChecking=no root\@${address} \"cat /var/log/messages""); This did not require a password, since the two systems were setup with proper ...
2 votes
1 answer
309 views

Creating ftp accounts with Perl

I wondering is it possible to make script for creating ftp accounts in perl? I have Unix server.
6 votes
3 answers
1k views

Differences between linux and Solaris /usr/bin/env

I've a simple script: #!/usr/bin/env perl -w print "Hello World\n" Make this executable, run on Linux, and I get: /usr/bin/env: perl -w: No such file or directory (without the -w, this works OK) ...
7 votes
4 answers
11k views

Perl or Python, better suited for Unix system automation?

I have been using bash for most of my system administration tasks. I also know a bit of perl. Should I learn Python or Perl is better for system automation. So far from my experience learning perl ...
0 votes
2 answers
258 views

Can't install Apache::Template on Debian

When I try to install this module via cpan: cpan -i Apache::Template I get an error "512, won't make". This behavior is the same on Debian Lenny or Squeeze. Any ideas on how to get it to build?

1
8 9
10
11 12