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

7
votes
5answers
2k views

Pain removing a perl rootkit

So, we host a geoservice webserver thing at the office. Someone apparently broke into this box (probably via ftp or ssh), and put some kind of irc-managed rootkit thing. Now I'm trying to clean the ...
7
votes
2answers
448 views

Why are all Linux commands broken after installing Perl?

I installed perl using following command: curl -L http://xrl.us/installperlnix | bash after that i run following command to create soft link ln -sf /usr/local/bin/perl /usr/bin/perl now I'm ...
7
votes
3answers
244 views

Creating a script to install a Perl application and its dependencies automatically

I have a Perl application that needs a lot of dependencies that i need to deploy on numerous servers I would like to make a script that installs that Perl application automatically and quickly. To ...
6
votes
4answers
772 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 ...
6
votes
2answers
2k views

Perl TDS character sets

I'm using the FreeTDS driver with DBD::Sybase, connecting to an MS SQL Server. When I query certain values of certain records, I get this error: DBD::Sybase::st fetchrow_arrayref failed: OpenClient ...
6
votes
1answer
659 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
11k 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 ...
5
votes
2answers
15k views

How to set up Gitweb

I have set up Git on a server, using gitosis to control commit access. I would like to configure my Git system so that anyone inside our firewall can have read access to the Git repository, and I ...
5
votes
4answers
6k 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 ...
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 ...
4
votes
7answers
2k views

I have a perl script that is supposed to run indefinitely. It's being killed… how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to ...
4
votes
3answers
2k 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 ...
4
votes
2answers
7k 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 ...
4
votes
1answer
212 views

perl equivalent of sh -e

In /bin/sh and /bin/bash (and I guess a lot of other shells), starting scripts with #!/bin/sh -e (or executing set -e in someplace in the script) would cause the script to abort when any command line ...
4
votes
3answers
184 views

Is it good practice to just copy Perl modules via RPM?

A few applications on our RHEL6 servers depend on a few Perl modules being present. I would like to add these Perl modules as part of the Kickstart process when turning up new hosts. As opposed to ...
4
votes
1answer
150 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 ...
4
votes
2answers
232 views

Perl search & replace

How can I use search and replace to change the contents of a file. I need to be able to change the 'all to none' and/or 'none to all' without having to manually do it every time for hundreds of ...
4
votes
4answers
3k views

How can I perform a syntax check on an .htaccess file in a shared hosting environment?

I have a build script (Perl) that modifies the .htaccess file when I deploy my applications. As a double-check, I'd like to be able to perform some sort of syntax checking on the created .htaccess ...
4
votes
1answer
772 views

LDAP passwords encryption (userPassword attribute)

I'm trying to import passwords from an LDAP to a MySQL database. When I look at the userPassword attribute for the known password test I get this: userPassword:: ...
4
votes
2answers
748 views

Windows Apache 2.2 painfully slow executing CGI

I've recently set up Apache 2.2 and git on one of our Windows XP PCs for gitweb access using the setup at https://git.wiki.kernel.org/index.php/MSysGit:GitWeb As noted on the wiki, the only version of ...
4
votes
1answer
207 views

Perlbal For Upload Handling

how and how well does perlbal handle uploads? does it take care of buffering the entire file to disk efficiently, and then pass arguments or headers to the backend describing the file? right now, im ...
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. ...
3
votes
7answers
5k 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 ...
3
votes
4answers
1k views

Coding exercise for Linux Systems Admin?

I am preparing for a Systems Admin(linux) role for a big company(top 10 companies) and one of the requisite is knowledge of a language like perl, python or Ruby. I have a phone interview which ...
3
votes
5answers
2k views

Broken upgrade of debian, causing perl issues

So I stuffed an upgrade of debian, both upgrade and dist-upgrade. I am more used to yum but thats no excuse. Now things are being silly. The majority of things work, however, my bugzilla install ...
3
votes
3answers
2k views

bad interpreter: Text file busy

For ages I've gotten used to editing Perl CGI scripts in "vi" and simultaneously having a browser open to test them. Lately, I've been getting "500" server errors when I do that, and when I run the ...
3
votes
4answers
338 views

SSH file transfers hang after ~700KB

OVERVIEW I'm scripting SFTP file transfers on a Windows 7 box in the field. When I transfer zip files larger than a megabyte or so, the transfer (and SSH) stops unexpectedly after about 700KB. The ...
3
votes
2answers
520 views

Debian Wheezy and SUID Perl

I just upgraded a Debian Lenny box to Wheezy, and found that suidperl is gone. Googling reveals that the upstream maintainers removed it; I need suidperl to run our mail installation, Open Webmail. ...
3
votes
3answers
3k views

How to install DBD::mysql on OS X Server 10.6?

Trying to install DBD::mysql on OS X Server 10.6 (mac mini server). But I'm missing the mysql headers apparently. Since mysql is already part of OS X Server 10.6, I would like to NOT install anything ...
3
votes
4answers
832 views

installing lots of perl modules

I've been landed with the job of documenting how to install a very complicated application onto a clean server. Part of the application requires a lot of perl scripts, each of which seem to require ...
3
votes
3answers
499 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 ...
3
votes
2answers
202 views

How do I make Apache finish running Perl scripts after the web browser is closed?

I have a Perl script that is activated by an end user clicking on a shortcut in a web browser. The script iterates over a list of hash values. It outputs to the browser some HTML when it inserts a ...
3
votes
4answers
4k 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 ...
3
votes
2answers
929 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?
3
votes
2answers
2k views

Mac OS X 10.6 Setup for Apache/MySQL/Perl

I just got a new Mac and have been trying to setup a local development environment for my perl applications for a few days now with no luck. I'm getting no where fast so I hope someone else who has ...
3
votes
1answer
110 views

Where can I find free web hosting for my Perl application?

I'm learning Perl and I wrote a simple application which I want to host. I would prefer free hosting, because as I'm just learning and my project is very simple.
3
votes
1answer
1k views

SVN Authentication over Apache (DAV) and Redmine not work

NEED HELP!!! I installed apache2, svn and redmine on an ubuntu server. After that I tried to do my authentication for svn over the redmine accounts. My apache config looks like this (stored in ...
3
votes
2answers
544 views

Open source scripting log analysis: tools for breaking stderr log messages into groups (normal bugs vs abnormal) or looking at trends (we're getting less of this message and more of that one)

Imagine some linux systems with scripts of various kinds (mostly PERL but it could be anything that writes to STDERR) which are run 100s of times by different users with slightly different needs. ...
3
votes
2answers
2k views

SunOS free command

I have SunOS 5.10 sparc server. I want to calculate system memory. I can easily find this in Linux using /usr/bin/free command. Can anyone please suggest me if there is any equivalent command in ...
3
votes
1answer
259 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 ...
3
votes
2answers
237 views

RT database scaling

Recently I heard someone suggest that RT request tracker may have scalability issues due to its non-normalized database (someone at a Perl meeting I went to referred to it in a positive light as ...
3
votes
1answer
389 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 ...
3
votes
1answer
2k views

Squid with php or perl “url_rewrite_program” on windows

I want to redirect all my http proxy traffic to a perl or php script. I have a working squid setup, and have this in my squid.conf url_rewrite_program "c:\\squid\\redirect.pl" But when I start ...
3
votes
1answer
160 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 ...
3
votes
1answer
1k views

Kill FINished sockets (using libpcap - tcpdump/tcpkill)

I'm trying to create a small service that monitors and kills sockets which have the FIN flag. I can get them with tcpdump (I also tried tcp[13] & 1): tcpdump "tcp[tcpflags] & tcp-fin != 0" ...
2
votes
8answers
735 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.
2
votes
3answers
169 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 ...
2
votes
2answers
3k 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
945 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
163 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 ...