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
115 views

linux + count how many digits in IP address [closed]

I write the following syntax (exist in my ksh script) in order to find how many digits I have in IP address IP_address=127.1.1.1 echo $IP_address | sed s'/\./ /g' | wc | awk '{print $2}' 4 . ...
1
vote
0answers
49 views

Dedicated TMP and AMAVIS

I perfectly configured my server and now I made 2 stupid mistakes, I updated perl along with it's dependencies and I made a dedicated TMP dir and included it in fstab to prevent code execution with a ...
2
votes
2answers
148 views

Runing perl Script using root cron told me “access denied”

This comes from here Now it runs, but when i run it using the root crontab, it told me: *tail: /var/log/backupeitor.log: file truncated /bin/sh: /home/backup/scripts/backupeitor.pl: Permission ...
-3
votes
1answer
336 views

Which scripting language to use to asynchronously ssh into equipment, run several commands, parse the output, and save to a file on my computer? [closed]

There are several points I'd like to stress in my question. I'd like to login by asynchronously ssh'ing into our infrastructure equipment. Meaning, I do not want to connect to only one device, do ...
0
votes
3answers
68 views

Perl scripts can't be run from an alias

I created the following Alias in httpd.conf: alias /aliasedfolder /some/location/on/the/server/folder <Location /aliasedfolder> AddHandler cgi-script .pl Options +FollowSymLinks +ExecCGI ...
0
votes
1answer
88 views

Linux/Solaris verification ( after hostname change ) in files according to hostname rule

According to the following Perl command ( this command part of ksh script ) I can replaced old hostnames with new hostnames in Linux or Solaris previos_machine_name=linux1a ...
3
votes
1answer
366 views

Cpan/m fails to install Cache::Cache because of method “set_size”

just starting out with perl (trying to get an Request Tracker install working): For some reason I can't install Cache::Cache! (or rather the tests are failing): Notes: perl 5.8.8 on CentOS 5.8 Final ...
-1
votes
3answers
65 views

perl remove two slashes regex [closed]

I have file wich has many lines inside All lines that contain file=/aaaaaaa/bbbbbbb/cccccc/dddddd.txt it needs to be stripped to this format file=/dddddd.txt i am executing perl in bash ...
0
votes
1answer
54 views

what does the perl command do in this script? [closed]

I am working on a system that has a staging environment and a live environment. We have a problem with images not getting pushed to live and I have found the following script that handles it: ...
0
votes
1answer
187 views

perl + sed + remove lines that start with “#”

please advice I have linux and solaris machines, and I need command that work on both OS I use the following perl line in order to remove all lines that start with "#" why perl command not work , ...
0
votes
0answers
82 views

How to change HTTP_REFERER using perl?

I tried to change log format and change HTTP_REFERER using perl to change browser's referrer like below. [pattern1] Log Format : %{HTTP_REFERER}o perl : $ENV{'HTTP_REFERER'} = ...
2
votes
3answers
157 views

linux + match only VALID IP from text file into other file

please advice how to match only the valid IPs ( 255.255.255.255 ) from the file.txt and insert only the valid IP into VALID_IP.txt file ( see VALID_IP.txt for example ) the solution should be ...
0
votes
3answers
458 views

When to use Bash, when Python/Perl/Ruby? [closed]

What's your rationale for when to write a Bash script and when to use a more powerful scripting language (Python, Perl, Ruby, ...)? I'm finding that very simple scripts are nicer with Bash, but many ...
0
votes
1answer
625 views

How can I forward email to a perl script on Linux?

I would like all mail sent to a particular alias on a Linux machine to be processed by a perl script but sendmail is giving me a "Service unavailable" error and I don't understand what I'm missing. I ...
2
votes
1answer
2k views

Did not find 'zeroDotZero' in module SNMPv2-SMI

I have a perl script that searches through our switches to find which one hosts a given IP address; this script uses net-snmp libraries to poll through a daisy-chain of ethernet switches (think core / ...
0
votes
2answers
133 views

Mod_Perl configuration for multiple domains

Reading the Mod_Perl module documentation, can we configure it on per domain basis, what I mean can we configure it to run on every domain or specific domain only. What I see in the docs is: ...
1
vote
0answers
249 views

File::Temp version 0.18 required--this is only version 16

I ran YUM on a server running BestPractical's RT. Now Apache won't start. Looking at the error log I get this error: File::Temp version 0.18 required--this is only version 0.16 at ...
0
votes
1answer
94 views

script for changing file dates of postfix Mailbox files

I have a Maildir structure, that got wrongly restored from backup and all files have the file date of the restore instead of when they have been created/received. What would be the best way to ...
1
vote
3answers
148 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
2answers
2k views

Perl File::Copy module installation fails

I have Perl version version 5.10.1 installed in my CentOS6.0 machine. I need to install TWiki and it needs some perl modules (see this URL) http://twiki.org/cgi-bin/view/TWiki/TWikiInstallationGuide ...
0
votes
1answer
108 views

Server Performance

I know very little about performance tuning of servers etc... so i thought i'd put this up here as i start some research on it, just to get some direction. I am in the process of migrating from my ...
0
votes
2answers
128 views

Centos 6.3 PERL CGI selinux file read access

I have a CGI script called index.cgi It is trying to read a log file called 10.128.0.242.2012.sep.20.downloaded.txt under the path /var/log/trafcount/ It appears that it is being blocked by selinux. ...
1
vote
1answer
589 views

Centos 6.3 PERL CGI selinux file read access

I have a CGI script called index.cgi It is trying to read a log file called 10.128.0.242.2012.sep.20.downloaded.txt under the path /var/log/trafcount/ It appears that it is being blocked by selinux. ...
0
votes
2answers
119 views

linux + create host file from CSV file by sed or awk or perl

I have the following CSV file this file defined which Linux machine exist in the system and there ip's my target is to create host file from this file please advice how to create host file as ...
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
2answers
136 views

Dynamically set current domain in nginx with perl module

I know how to set variables and use subroutines with the nginx builtin perl module INSIDE a "server" directive but, what I need to do is to set/rewrite the current domain before. Let's say, we have a ...
1
vote
1answer
1k views

Configure Perl DBI and DBD in Linux

I am new to Perl and I work in a Linux OEL 5x server. I am trying to configure the Perl DB modules for Oracle connectivity (DBD and DBI modules). Can anyone help me out in the installation procedure? ...
2
votes
1answer
226 views

Can I safely delete the .cpanm/work directory?

I've used cpanm to install cpan perl modules on my system, however the .cpanm/work directory is 100's of megs and I'd like to delete it. Can I delete this directory without adversely affecting my ...
0
votes
3answers
837 views

Perl not working with Nginx via fastcgi, cannot decipher error logs

Im running CentOS 6.2, Nginx 1.2.3 following these Linode Instructions to get Perl to work with Nginx I've done everything upto the point of testing an actual Perl file. When I do this the browser ...
0
votes
0answers
72 views

Remote access of Perl script no longer working

I have a Perl script on my server that another 3rd party website runs to add a username and password to a file on my server. This used to work without any problems for years but recently we had a HDD ...
1
vote
1answer
94 views

Using environment variables to keep track of processes launched by cron

My question: I have an if statement in perl where I attempt to detect via environment variables at the time of launching the perl script whether it was launched via a cron job or via normal execution ...
5
votes
3answers
1k views

Cannot run logwatch due to Date::Manip issue

I tried to run logwatch at follows [root@machine cron.daily]# ./0logwatch ERROR: Date::Manip unable to determine TimeZone. Execute the following command in a shell prompt: perldoc ...
1
vote
0answers
170 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
808 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
390 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
474 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
73 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
187 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
1k 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
232 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
949 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
6k 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
223 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
308 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
502 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
1k 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
394 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
246 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
52 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 ...