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

3
votes
1answer
3k 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
163 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
2k 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
793 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
205 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
5answers
2k 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
176 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
2answers
1k 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
2k 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
1answer
616 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
216 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
438 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
520 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
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
180 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
1k 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
4k 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
1answer
121 views

postfix parameter default_privs

I have set default_privs=myuser in main.cf, which is a perl script, executed in the context of this user. In the perl script I added some debug to print out the user: my $exec_username = ...
2
votes
2answers
310 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
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
97 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
684 views

Mount remote partition using perl scripts

I am trying to mount remote server partition to put backup. I already have th perl script to take backup of data. I trying to add the mount command in the script. The below is the script, Please guide ...
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
2answers
4k views

How to run linux bash script from web browser?

Hi I have web server on it also. I had made simple bash script using vi editor..which will open file and then add some lines into it at last it will save automatically...and after that 2-3 linux ...
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
340 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
5k 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
141 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
3answers
3k views

imapsync - Authentication failed

I've deployed many Google Apps accounts and have used imapsync a number of times to migrate accounts to Google Apps. This time however, no matter what I try imapsync refuses to work claiming my ...
2
votes
2answers
636 views

How do I build and configure a local CPAN module repo?

I'm a sys admin administering three air gapped (zero internet access) supercomputers. On one of the supercomputers we need to run Bugzilla. I already built my own local yum repository, but now I ...
2
votes
1answer
58 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
1answer
250 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
2answers
1k views

CPAN installer for Puppet can't find relationship target

Based on some code from this blog and in the comments I'm trying to define some simple CPAN install functionality for Puppet, and I'm trying this: class perl { define install-cpan () { exec { ...
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
182 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
1k 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
2k 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
3k 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
4k 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
430 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
2k 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
1k views

Run a perl script as a windows 7 service

I have a perl script which is compiled using pp, to be run as a windows service on windows 7 machines. I looked at the thread http://www.perlmonks.org/index.pl?node%5Fid=230377 but of little use ...
2
votes
2answers
496 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 ...