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

1
vote
0answers
198 views

Installing BugZilla on Snow Leopard Server: Perl install issues

I'm installing BugZilla on Snow Leopard Server (latest version) using these instructions. And I'm having problems installing required perl modules. It says to run commands that look like this to ...
0
votes
1answer
1k views

run specific perl script as root under apache

I have a perl program that runs fine when called through the Internet via apache on Fedora Linux server. In that perl script I have a system command which does not run because it needs to be run as ...
0
votes
1answer
595 views

BugZilla XML RPC Interface

I am attempting to setup BugZilla to receive but reports from another system using the XML-RPC interface. BugZilla works fine on its own with its own interface. When I attempt to test the XML-RPC ...
1
vote
3answers
560 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 ...
-4
votes
1answer
91 views

view cpanel running scripts

Hi I want to view or stop the perl scripts which are running in my cpanel server. Me have no root access to server. But i think some perl or python scripts are still running in my server. Please help ...
0
votes
1answer
194 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 ...
2
votes
3answers
2k views

SELinux is preventing Perl CGI script from accessing Oracle libraries

I'm trying to configure SELinux on a Red Hat Enterprise Linux 6.2 web server that runs Apache 2.2.15 and Perl 5.10.1, and connects to remote Oracle databases. The Oracle 11.2g client is installed. The ...
2
votes
2answers
3k views

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC

Having the following error while trying to execute a perl script(For LVM backup). Seeing some DBD module is missing. How would I resole it ? [root@localhost mylvmbackup-0.13]# ./mylvmbackup ...
0
votes
1answer
314 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 ...
1
vote
2answers
1k views

Issue with perl -MCPAN -e 'install Module::Build';

While doing the perl -MCPAN -e 'install Module::Build'; it gives the following error, How can I resolve it ? /usr/bin/perl Build --makefile_env_macros 1 Can't locate Perl/OSType.pm in @INC (@INC ...
1
vote
2answers
7k 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 ...
0
votes
1answer
276 views

Webmin API functions via XML-RPC getting error unknown RPC type

From one of my development server i am trying to Create a new Unix user in webmin , through XML-RPC calls.The base URL is "http://yourserver:10000/xmlrpc.cgi". Here the yourserver is not the ...
1
vote
0answers
421 views

Perl / BerkelyDB @INC problems trying to install Amavisd-new (CentOS)

I'm trying to follow this guide here to install Amavis, SpamAssassin + ClamAV... http://wiki.centos.org/HowTos/Amavisd Things mostly went well but Amavisd would not start... # service amavisd start ...
0
votes
1answer
665 views

Amavisd-new cannot start - missing Unix::Syslog (CentOS)

I followed the basic instructions here for installing amavisd, spamassassin + clamav... http://wiki.centos.org/HowTos/Amavisd I get the following error when trying to start amavisd... # service ...
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: ...
2
votes
0answers
442 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 ...
3
votes
1answer
288 views

Perl virtual environments?

Background (not a mandatory read) I started my current job as a web development intern. The guy who was teaching me left half way through and I have basically been left up sh*t creek with only a ...
2
votes
1answer
56 views

perl setting locale failing

Is there any way of fixing once and for all the problem mentioned here: http://www.thomas-krenn.com/de/wiki/Perl_warning_Setting_locale_failed_unter_Debian I keep fixing it by doing export ...
0
votes
1answer
62 views

How do you enable Perl on Ubuntu with Apache2

I have installed ubunutu witha apache on my pc and everything works great except: I don't know how to enable perl, everything I have tried either gave me a server error or gave me a 403 for the perl ...
0
votes
1answer
1k views

Need help running CGI scripts on Mac OS X Apache

I'm trying to run a simple CGI perl script (see below) using Apache on my Macbook running OS X Lion and I'm having difficulty getting it to run even the simplest of scripts. I have turned on web ...
2
votes
2answers
1k views

Bugzilla can't install DBD::mysql

Im not at all familiar with anything that I am doing right now... so I am extremely nervous about it. I have some websites running on my server using mysql. I use mysql -v and I get: mysql Ver ...
4
votes
1answer
169 views

Perl script error: byteloader version mismatch

I have perl script for TSM reporting which was working fine in AIX version 5. After upgrading AIX to version 6, the script is not working. I'm getting this error: byteloader version mismatch expected ...
2
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
261 views

Making lighttpd redirect from www.example.com to www.example.com/cgi-bin/index.pl

What the title says.. www.example.com is defined in lighttpd.conf as a virtual host: $HTTP["host"] =~ "(^|\.)example.com$" { server.document-root = "/usr/www/example.com/http" ...
0
votes
1answer
145 views

Windows, Apache and MSSQL Authentication

I have a create database script written in perl. I remember it working just fine another machine. A couple years later using a Vista machine I am trying to use it again and it keeps failing. The ...
0
votes
1answer
464 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 ...
6
votes
1answer
694 views

NRPE and Perl - cannot include ANYTHING or it breaks

I've been banging my head off NRPE and Perl for weeks now. I decided to start from absolute first principles, and create a dummy nagios plugin that does nothing but always returns OK. I called it ...
5
votes
4answers
12k 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 ...
1
vote
2answers
4k views

Centos 6, apache mod_perl configured but not working

I just received today my dedi server access, I installed apache: yum install httpd After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my ...
2
votes
1answer
681 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 ...
3
votes
5answers
1k views

File transfer between two servers, no FTP, no web

I am looking to automate the transfer of file in a given directory from one server to another server. they are both on the same network, can ping each-other, and even ssh from one to another. ...
0
votes
2answers
364 views

su on perl script doesn't work from crontab

I have a perl script running o.k. on unix machines and manually from root user but not from crontab on linux machine: the problematic command is: su - $user system("su - togui103 -c ...
-3
votes
1answer
67 views

bash + create proccess from function before program ended

the following short bash program described how to execute the func1 by process ( func1 & ) func1 is function that do some tests and verification on Linux machines And this program run after ...
2
votes
5answers
1k views

bash + print line every 10 min in bash

I want to print by echo the following "still in process wait another 10 min" every 10 min Please advice what condition needs to add before the echo command in order to print this line every 10 min? ...
0
votes
1answer
854 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 ...
1
vote
4answers
550 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 ...
2
votes
0answers
203 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 ...
0
votes
1answer
999 views

Can't install Perl module Apache::SizeLimit on CentOS

On a CentOS machine I have installed mod_perl: yum install mod_perl ... Package mod_perl-2.0.4-10.el6.i686 already installed and latest version Ok, now I want to install the Perl module ...
0
votes
1answer
109 views

Install Facebook Perl Module Debian

I'm getting an error Can't locate Facebook.pm I'm wondering if anyone can tell me how to install the perl facebook module under debian. Thanks the full error is Can't locate Facebook.pm in ...
-3
votes
1answer
218 views

how can execute complicated linux command inside perl [closed]

#!/usr/bin/perl @HOSTS = ("192.168.14.112", "192.168.14.90", "192.168.160.1", "192.168.160.100"); my $COUNT = 4; my $date =`date`; for my $myHost (@HOSTS) { **$count = `ping ...
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 ...
0
votes
1answer
5k views

Config Server Firewall: You need to install the missing perl modules and then install cxs

I am trying to install config server firewall however when i follow the tutorial and run install.sh i get the following error. Can anyone help? root@localhost:~/csf# sh install.sh Configuring for OS ...
2
votes
2answers
368 views

Perl command line + add PATH before string in file

I want to add the PATH - /usr/local/bin/perl befpore string in the file by perl command line ( the perl command line must be in my bash script ) , I have solaris machine the target to add - ...
1
vote
1answer
61 views

How to run Mason (HTML-Mason) on IIS 7?

I have a website using Mason that I must transfer to an IIS7 server. I followed the instructions here http://www.masonhq.com/?RunningMasonUnderIIS, but they seem specific for IIS 6 and I have ...
1
vote
1answer
355 views

How to listen for SNMP Traps from SNMP enabled network devices?

I just began working for my school's networking department, and I was assigned a project to develop a program to listen for traps from SNMP network devices. The device I am testing with an Access ...
2
votes
2answers
95 views

perl + Match last number in file and reduce it by one

I want to add the following perl command in my bash script please advice how to change (reduce by one ) the last number that start with "+" character in file with perl ? Example of original file ( ...
1
vote
1answer
860 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
1answer
819 views

nginx redirect issue with upstream configuration

I have a website running with nginx and Plack/Starman as upstream. simple configuration looks like: upstream findmjob { server unix:/tmp/findmjob.sock; } server { listen 80; ...
1
vote
1answer
1k views

How to grep string in perl [closed]

How to grep the string in perl. Variable sessionWeb contains a web page html code. I want to grep "active Sessions" from this and want to print as below. For example the line in the web page will be ...
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 ...