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

0
votes
5answers
3k views

Removing perl module installed with cpanm

I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to 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 ...
-1
votes
2answers
214 views

merging two files using perl keeping the copy of original file in other file [closed]

I have to files like A.ini and B.ini ,I want to merge both the files in A.ini examples of files: A.ini:: a=123 b=xyx c=434 B.ini contains: a=abc m=shank n=paul my output in files A.ini should be ...
1
vote
3answers
716 views

Perl missing while installing nginx on centos

I am trying to install nginx on my server, however it keeps returning "./configure: error: perl 5.6.1 or higher is required" eventhough I have perl v5.8.8!!!! I have already downloaded perl and ...
7
votes
2answers
454 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 ...
1
vote
0answers
427 views

What does the error message “Communication link failure (SQL-08S01)” actually mean?

Our application is running on dozens of servers and only a few get this error message. What is worse, is that the SQL query that causes this error message seems to be executing. The application is ...
1
vote
1answer
320 views

Perl sendmail attach log files match date format

I want to send log files matching date format, e.g. YYYY-MM-DD-*.log as attachments in Perl script. In BASH, this can be easily done by: [ -f $DIR/explog/$(date "+%Y-%m-%d")-*-host1.log ] && ...
0
votes
2answers
376 views

Mail::Sendmail with attachments and embed Perl in Bash script

1> I want to embed below Perl script in BASH script, and the Message should read from a message.txt file. How to realize this? use Mail::Sendmail; %mail = ( To => 'you@there.com', ...
1
vote
1answer
484 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 ...
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 ...
0
votes
2answers
89 views

What may be wrong with String::ToIdentifier::EN tests?

I try to install Perl module String::ToIdentifier::EN (as depndency of DBIx::Class::Schema::Loader) but it fails on tests. I googled those errors but get no picture, where is problem: Building and ...
0
votes
1answer
51 views

Modify apache 2 to use different Perl instance

I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work. Any ...
0
votes
2answers
77 views

Is it possible to save the perl modules using cpanm?

The following commands attempts to reinstall, I just want to download w/o installing. I'm usnig Ubuntu. cpanm Test::Fatal --save-dists saved
0
votes
1answer
37 views

what is DDODBC.DAT

The file /var/local/odbc/DDODBC.DAT is being created/accessed on some (not all) servers when the database is accessed via Perl dbi:ODBC. I did a full crawl through /var/local/odbc on a server that ...
-1
votes
1answer
549 views

installation & configuation the Apache 2 on OpenSuse 12.1 - a quick walktrough

experts, good day. sorry for being the newbie - i am pretty new to linux and Apache. i am pretty new to Linux i tried to installl & configure the Apache 2 on OpenSuse 12.1 - here my quick ...
1
vote
1answer
433 views

Nginx directory aliasing incorrectly passing to fcgi

I have a website virtual host, example.com, which is statically served out of /home/erealms/www. However, the website runs through a series of perl scripts, which are located in various directories. ...
4
votes
1answer
235 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 ...
1
vote
2answers
1k views

Perl script and out of memory errors

We have a midsized server with 48GB of RAM and are attempting to import a list of around 100,000 opt-in email subscribers to a new list management system written in Perl. From my understanding, Perl ...
0
votes
2answers
137 views

Is this script nefarious?

This is sitting in my web site's cgi-bin. Should I be concerned about it? #!/usr/bin/perl print <<HTML; Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 ...
1
vote
4answers
2k views

Silent and scripted install of CPAN and Perl modules?

I need to install CPAN and some Perl modules automatically in a Scientific Linux (RHEL) installation script. Unfortunately the specific modules I want (at least one of them) cannot be found as RPM:s ...
1
vote
4answers
863 views

SSH key based authentication in Perl server

I have a server written in Perl that clients connect to in order to perform some management tasks. Without going into details I would like to achieve two things: encrypt connection channel between ...
1
vote
1answer
89 views

Watch logfile for absence of a string

I'm trying to watch Apache logs for the absence of an event that should occur hourly. For instance it could be a string like: 123.123.123.123 GET /backup.tar.gz It looks like existing code does not ...
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 ...
1
vote
2answers
1k views

How to tell is apache is configured to use perl?

I've spent enough time looking around for answers to this with google and I give up. Plenty of discussions about how to build apache with perl support but I want to find out how to tell if the apache ...
0
votes
1answer
561 views

Include Virtual SSI not working for CGI script

I have the following Server Side Includes within an .html file called test.html... <!--#include virtual="/cgi-bin/myScript.cgi"--> <!--#include virtual="/includes/myFile.html"--> When ...
3
votes
4answers
477 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
1answer
2k 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 ...
0
votes
2answers
215 views

How can I install a perl module available only to my user ID?

I need to install some Perl Modules for my Perl scripts. However those modules are not available on the servers I want to run the scripts on. I also do not want to mess with server wide library ...
1
vote
1answer
84 views

weird behavior of perl's Compress-Zlib? [closed]

I'm been going crazy on this one... I've been using the gzflush() function for years in my collectl tool and recently noticed something very unusual with it on debian. I'm actually thinking it's ...
0
votes
1answer
171 views

ksh + print the last value from parameter ( as $_ in perl)

I need advice - how to print the same last value in ksh scripts without to print param argument for example in perl last value is $_ , but we not have this option in ksh script example - of ksh ...
1
vote
1answer
640 views

perl process causing high server load, how to find what its doing

I've got a Debian webhosting machine with cpu loads around 11. Using top I see that perl is using 99% of the cpu as user www-data. How can I find out more about what perl is actually doing?
1
vote
0answers
1k views

Apache caught SIGTERM, shutting down and port 80 using by perl procceses

Apache randomly shutdown and cant restart. Port 80 used by perl processes. When I kill processes which use port 80, apache can restart again. log and results : tail -50 /var/log/httpd/error_log ...
0
votes
3answers
533 views

How to optimize mysql insert using perl?

ive got log parser on perl and it uses mysql insert or update command on every line. Like: Log line 1: 2012-12-01 12:12 [perld] Hello world #1 .... Log line N: 2012-12-01 12:NN [perld] Hello world #N ...
-2
votes
1answer
197 views

Whats the best server-language for programing a Webcrawler? [closed]

I would like to ask what language: ASP.NET / Ruby / CGI / Perl / Python / ColdFusion... would be the bes for programming a Webcrawler and for processing the contained information???? (it should ...
-3
votes
2answers
173 views

Rogue perl script

I have a rogue perl script that is running on a Linux box. Is there a way to see where is this script located?
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 ...
4
votes
1answer
983 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:: ...
0
votes
1answer
927 views

nginx perl not working

I have NGINX working happily with PHP FPM all tickety-boo. I am trying to add some Perl pages. I have this in my default site config; location ~ \.pl$ { gzip off; include ...
1
vote
2answers
318 views

Run Perl Script on Apache2/Redhat5.5

I am working with an Apache2/Redhat5.5 configuration. I am trying to configure (and learn) how to run Perl scripts which is new to me. In my httpd.conf file I made these changes and/or notice these ...
0
votes
1answer
2k views

suexec policy violation: What were these guys up to?

Have just assumed responsibility for a new client's site. OS is Linux. They had a cgi-bin directory below document root. I was looking at my error.log for an issue with a script and found a number ...
1
vote
1answer
762 views

Why is Perl Cgiwrap Sock refusing connection to nginx?

Could anyone shed some light on the following line in my nginx error logs. I'm trying to get Perl and Nginx talking to each other, but so far no success. unix:/var/run/nginx/cgiwrap-dispatch.sock ...
1
vote
0answers
35 views

Granting Perl group permision

I just installed PERL into my apache2 configuration so that I could use SimpleScripts, however SimpleScripts gave me the following errors: [18 Nov 21:08] Upload success: ...
0
votes
1answer
55 views

perl + ignore “/” char in perl

I want to replace the string America/Adak with America/Jamaica by: perl -i -pe "s/$A/$B/" /etc/sysconfig/clock please advice what need to update in the perl syntax ? ( the problem is that ...
0
votes
1answer
120 views

Adding log4perl to windows server 2008 running perl32

Yes I know, It's a really weird configuration but I can't do anything to change it. I wonder if it's possible to run log4perl on Windows 2008 64 bit system running Perl 32 bit. Does any one have a ...
1
vote
2answers
795 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 ...
3
votes
2answers
3k views

Bugzilla install-module.pl can't find “make” but it's installed and in my path

I'm installing Bugzilla on a new Ubuntu server, and ./checksetup.pl finds one more library I need to install. So it tells me to run this command: /usr/bin/perl install-module.pl Math::Random::Secure ...
0
votes
3answers
242 views

Disable, not unisntall, perl on Red Hat Enterprise 5.X?

So we found that some trojan has been the cause of our two web servers crashing once a week as we found that perl was executing dozens of malicious "gif" files spiking the memory and eventually ...
1
vote
3answers
859 views

LDAP + TLS - different behaviour on two machines

machines: debian wheezy suse 11 commands: ldapsearch -ZZ -h ad.unsw.edu.au -x perl -we "use Net::LDAP; print Net::LDAP->new ('ad.unsw.edu.au')->start_tls(verify => 'require', capath ...
0
votes
3answers
1k views

Bugzilla not sending emails, even to the test file?

I have installed and setup Bugzilla3 for my domain. Everything is working properly except for the email functionality. The server uses Postfix, and that works for my PHP application, and command ...
0
votes
2answers
72 views

Linux - get a report of what programs a command line perl script calls and the files it produces and uses

I have a Perl script that calls about 10 other perl scripts some of which call Python scripts. Each of those produce files which the other programs read. It's pretty complex. What I would like to ...