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
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 ...
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? ...
2
votes
2answers
166 views

Is Redhat Linux dependent on the install time version Perl?

I'm migrating from a Solaris server with Perl 5.6.1 to a Redhat Linux server with Perl 5.8.8 . My stance is that we keep the newer version of Perl and do not downgrade to the older version to avoid ...
2
votes
3answers
1k views

Finding the current user authenticated by basic auth (Apache)

When you log in through a basic auth page, is the username you authenticated as stored anywhere (on the server or client machine), maybe in an environment variable? Background: I have a common web ...
2
votes
2answers
750 views

Install RequestTracker (RT) on Windows Server?

Is it possible to install the latest RT on Windows Server? I've found some installers online for previous versions, but can't find any tutorials for the current version. Currently trying to do ...
2
votes
1answer
1k views

When, if ever, can i expect Perl 5.10 to be available on CentOS?

I'm mainly a Perl programmer and as such entirely clueless about linux administration and politics, but i figure people here would be able to help me on this one. I'm working on a website that is ...
2
votes
4answers
1k views

Perl CGI.pm module wildly out-of-date on RedHat/CentOS 5

I am trying to install all my Perl modules from RPM (using rpmforge.net), instead of just acquiring them from CPAN. My ultimate goal is to get Bugzilla 3.4.4 running. It requires CGI.pm 3.21 or ...
2
votes
2answers
855 views

Mod Perl on RHEL 7

I for the life of me can not find the mod_perl package for RHEL 7. There is no package remotely called mod_perl, and google does not help. I am trying to get Redmine Git Hosting setup, but I need to ...
2
votes
4answers
1k views

Handy parsing for numbers with unit suffixes?

Let's say you have data with quantities in human-readable format, such as the output of du -h, and want to further operate on those numbers. Let's say you want to pipe your data through grep to do a ...
2
votes
1answer
578 views

CentOS 5.3, Perl, bash commands, Hide ALL output to screen

I am running the following command: [user@server ~]$ /usr/sbin/ntpdate -d IPREMOVEDFORSECURITY | egrep 'transmit timestamp' | tail -1 | awk '{print $4, $5, $6, $7, $8}' host found : ...
2
votes
1answer
215 views

How can I set up a testbed LAMP stack on an Ubuntu 9.04 desktop installation?

What's the best way to set up an Apache/MySQL/Perl CGI environment starting from an Ubuntu 9.04 desktop installation? I'd like to be able to do this either from within a VM or on a "real" ...
2
votes
2answers
306 views

Request tracker: Auto assign owner on reply

We recently migrated from Spiceworks to RT4. In Spiceworks, you could set it to where it auto assigns a ticket upon an tech's reply or use email tags to assign it to another tech. Is there a way to ...
2
votes
1answer
342 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 ...
2
votes
2answers
176 views

awk + perl + get two arguments in to awk syntax

please advice what wrong with my awk syntax and how to fix it ( this syntax is in my ksh script ) and I run my script on linux machine my target is to get from the file.txt only the lines that ...
2
votes
2answers
889 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, ...
2
votes
1answer
3k views

Apache2::AuthenNTLM connects to Domain controller but does not authenticate

I have an Apache 2.2 server running Apache2::AuthenNTLM. I have successfully Apache2::AuthenNTLM configured it to the point that it connects to the domain controller. However, valid username / ...
2
votes
2answers
3k views

Send email based on grep results

I'm using WebInject (CLI not GUI) to test out online web services. I was going to go with a third party until I found this little gem and realized what I could save... What I want to accomplish is to ...
2
votes
2answers
1k views

What is the right way to chroot perl script?

I created /opt/chroot, create bin lib and other directories in it, copied libraries, bash and perl binaries in proper places. Also I placed my script into /opt/chroot/bin/. Now I can run the script ...
2
votes
2answers
231 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 ...
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
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 ...
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 ( ...
2
votes
1answer
6k views

Upgrade Perl on CentOS 5.5 to version 5.10+

I am trying to install a Perl program, but its minimum version requirement is Perl 5.10.0. We are running CentOS 5.5, which has Perl 5.8.8 as the default. Is there an easy way to upgrade Perl to ...
2
votes
1answer
3k views

Perl: hide system output

Using Perl 5.8.8 on Linux, need the output of a perl 'system' command to be hidden. The command in my code is: system("wget", "$url", "-Omy_folder/$date-$target.html", "--user-agent=$useragent"); ...
2
votes
2answers
336 views

MSSQL access from Perl

I've been tasked with writing a script to do some file processing, and I need to be able to do a simple query against a SQL server to verify the counts on the server match up to how many the database ...
2
votes
4answers
1k views

apache2-worker + cgi-perl vs apache2-prefork + mod_perl - what’s faster? what takes less resources?

Hiya. I', using Gentoo linux. it seems that i cannot emerge/install mod_perl with a threaded apache2 so i would like to know what's the pros and cons of using the worker module of apache2 with ...
2
votes
2answers
4k views

How do you configure Perl CPAN in Solaris?

I can't seem to get CPAN installs working on a Solaris machine. Here is my current output. ~# perl -MCPAN -eshell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules ...
2
votes
2answers
140 views

Lex Flex variant that will do the Perl REGEX extensions

I use flex & lex a lot for stripping stuff from e-mail attachments in scritps. I wondered if there are moden versions and variants of the lex programs that have the perl REGEX extensions. I know ...
2
votes
1answer
5k views

Run perl script as a windows service

How do you run a perl script as a windows service? I have a script that gathers all sort of data and then relays them to a server, but I need to run this as a system service in order to report data ...
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 ...
2
votes
3answers
5k 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 ...
2
votes
1answer
229 views

Creating ftp accounts with Perl

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

What is the easiest way to update perl on Ubuntu 8.04LTS?

I have an app that currently runs on perl5.8 that I would like to upgrade to perl5.10, if not 5.11. The only problem is we run Ubuntu LTS everywhere that I'd need to deploy this to. From what I've ...
2
votes
4answers
173 views

Multiple Developers, One Apache (with mod_perl)

I have multiple developers on one server, each with their own copy of the same perl codebase checked out of SVN. I want each developer to have their own subdomain pointing to their own copy of the ...
2
votes
3answers
965 views

How can I run Bugzilla on Windows with Strawberry Perl?

I've been at it for 3 days now, and run into, usually, a Storage.pm problem with the "Binary image v18.86 being greater than 2.7". I've tried different Bugzilla's: 3.0.8, 3.2.4, 3.4rc1. Next I'll be ...
2
votes
2answers
831 views

Installing perl-Time-HiRes on RHEL6.2 gives perl dependency error

I get the following when trying to install perl-Time-HiRes: host1:user1 > sudo yum install perl-Time-HiRes Loaded plugins: product-id, security, subscription-manager This system is not registered ...
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 / ...
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 ...
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 - ...
2
votes
2answers
1k views

Bugzilla : No SASL mechanism found

I am using Bugzilla on windows 7. I am using the unofficial Bugzilla installer. I followed the steps accordingly and gave valid credentials wherever required. I open Bugzilla and try to create a new ...
2
votes
2answers
438 views

localhost In Outgoing Messages

I have exactly the same problem as this. In a nutshell I am using mime::lite to send admin emails but they appear to be being flagged as spam because localhost[127.0.0.1] appears in the headers. My ...
2
votes
2answers
1k 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 ...
2
votes
2answers
845 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
720 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
405 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
418 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
803 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
102 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 ...