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
1answer
664 views

Accessing Bugzilla return internal server error

I tried to install Bugzilla 4.2.1 to an Amazon EC2 with Amazon Linux OS. I have installed all the necessary perl_modules from the EPEL repo, and configured httpd and mysqld. But when I try to view ...
1
vote
4answers
324 views

How can I check the location of perl and CPAN files?

I constantly have to set up new servers for an employer of mine for an exact purpose of his, and as such they all have to be set up in exactly the same way. So I've created a script in PHP that I run ...
2
votes
0answers
157 views

Can't get NetSNMP agent to answer using my prorietary MIB

I have to add a proprietary MIB to debian's snmpd that I must be able to query (get and set) from another networked computer on a non-standard UDP port (network aspects will be a further step). I ...
0
votes
1answer
764 views

Can't install Perl module Apache::SizeLimit on CentOS

On a CentOS machine I have installed mod_perl: yum install mod_perl ... Package mod_perl-2.0.4-10.el6.i686 already installed and latest version Ok, now I want to install the Perl module ...
0
votes
1answer
97 views

Install Facebook Perl Module Debian

I'm getting an error Can't locate Facebook.pm I'm wondering if anyone can tell me how to install the perl facebook module under debian. Thanks the full error is Can't locate Facebook.pm in ...
-3
votes
1answer
163 views

how can execute complicated linux command inside perl [closed]

#!/usr/bin/perl @HOSTS = ("192.168.14.112", "192.168.14.90", "192.168.160.1", "192.168.160.100"); my $COUNT = 4; my $date =`date`; for my $myHost (@HOSTS) { **$count = `ping ...
1
vote
2answers
937 views

How to call perl from crontab?

I can run this command fine from the SSH console of my rackservers shared hosting: cd /home/myaccount/public_html/whatever; perl -w -I/home/myaccount/public_html/whatever rss2txt.pl ...
0
votes
1answer
4k views

Config Server Firewall: You need to install the missing perl modules and then install cxs

I am trying to install config server firewall however when i follow the tutorial and run install.sh i get the following error. Can anyone help? root@localhost:~/csf# sh install.sh Configuring for OS ...
2
votes
2answers
270 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 - ...
1
vote
1answer
50 views

How to run Mason (HTML-Mason) on IIS 7?

I have a website using Mason that I must transfer to an IIS7 server. I followed the instructions here http://www.masonhq.com/?RunningMasonUnderIIS, but they seem specific for IIS 6 and I have ...
1
vote
1answer
285 views

How to listen for SNMP Traps from SNMP enabled network devices?

I just began working for my school's networking department, and I was assigned a project to develop a program to listen for traps from SNMP network devices. The device I am testing with an Access ...
2
votes
2answers
89 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 ( ...
0
votes
1answer
708 views

Nagios plugin script not working as expected

I have modified an off-the-shelf Nagios plugin perl script to (in theory) return a one or zero according to the existence, or not, of a file on a remote linux server. The script runs a remote ssh ...
0
votes
1answer
704 views

nginx redirect issue with upstream configuration

I have a website running with nginx and Plack/Starman as upstream. simple configuration looks like: upstream findmjob { server unix:/tmp/findmjob.sock; } server { listen 80; ...
1
vote
1answer
930 views

How to grep string in perl [closed]

How to grep the string in perl. Variable sessionWeb contains a web page html code. I want to grep "active Sessions" from this and want to print as below. For example the line in the web page will be ...
1
vote
2answers
1k views

What's wrong with this installation of Net::SSH2 Perl module?

I am trying to install Net:SSH2 Perl module, but I run in this error: [root@script-server fmzbih_cms_weather_updater]# cpanm Net::SSH2 --> Working on Net::SSH2 Fetching ...
0
votes
4answers
2k 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
151 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
131 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
574 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
437 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
324 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
248 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
301 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
324 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
1k 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
76 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
49 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
32 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
486 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
376 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
165 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
620 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
122 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
1k 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
715 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
2answers
82 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
160 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
923 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
342 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
248 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
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 ...
0
votes
2answers
188 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
75 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
152 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
493 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?
0
votes
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
361 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
169 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 ...