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

4
votes
1answer
158 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 ...
0
votes
0answers
64 views

What causes newlines to be stripped when a buffer is flushed to a full ext3 partition?

We noticed this when we got disk full problems on our log partition. The resulting log files would have many lines concatenated together as if newlines were being stripped. A single line would be ...
0
votes
1answer
238 views

Making lighttpd redirect from www.example.com to www.example.com/cgi-bin/index.pl

What the title says.. www.example.com is defined in lighttpd.conf as a virtual host: $HTTP["host"] =~ "(^|\.)example.com$" { server.document-root = "/usr/www/example.com/http" ...
6
votes
1answer
683 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 ...
0
votes
1answer
136 views

Windows, Apache and MSSQL Authentication

I have a create database script written in perl. I remember it working just fine another machine. A couple years later using a Vista machine I am trying to use it again and it keeps failing. The ...
0
votes
1answer
399 views

Check_webinject plugin will not connect to https site using

We're using Nagios to monitor some of our web sites. We have a script that uses the older plugin that we are trying to switch to using webinject.pl from cpan. When the script runs, it generates this ...
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 ...
1
vote
2answers
3k views

Centos 6, apache mod_perl configured but not working

I just received today my dedi server access, I installed apache: yum install httpd After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my ...
1
vote
4answers
552 views

How to force Perl use /bin/ksh instead of /bin/sh?

I am migrating from AIX to Solaris 10, but the version of /bin/sh there is so old, that our scripts does not work. Can I somehow force perl to execute commands in `` via different shell (in my case, ...
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. ...
0
votes
2answers
345 views

su on perl script doesn't work from crontab

I have a perl script running o.k. on unix machines and manually from root user but not from crontab on linux machine: the problematic command is: su - $user system("su - togui103 -c ...
-3
votes
1answer
66 views

bash + create proccess from function before program ended

the following short bash program described how to execute the func1 by process ( func1 & ) func1 is function that do some tests and verification on Linux machines And this program run after ...
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? ...
0
votes
1answer
822 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
3answers
685 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 ...
1
vote
4answers
449 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
195 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 ...
1
vote
2answers
246 views

HTML pages getting 'cut off' CGI/Perl

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by ...
1
vote
2answers
1k views

How do I increase the buffer size for domain sockets in OS X 10.6

In Linux I have no problem dumping tons of data into a domain socket, but the same code on OS X 10.6.2 blows up after about 65 records. The socket reader code looks like #!/usr/bin/perl use strict; ...
0
votes
1answer
942 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
107 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 ...
1
vote
2answers
1k 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 ...
-3
votes
1answer
207 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
5answers
3k views

Unable to install Perl Crypt::OpenSSL::RSA module, please help

I spent several hours but unable to install CPAN Crypt::OpenSSL::RSA module. It's required for Postfix's dkimproxy add-on. What I do is to run the following command in the shell: $ perl -MCPAN -e ...
2
votes
2answers
339 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 - ...
0
votes
1answer
5k 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
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 ( ...
1
vote
1answer
346 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 ...
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 ...
0
votes
1answer
782 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; ...
0
votes
1answer
167 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
1k 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
2k 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 ...
2
votes
2answers
172 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
191 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 ...
0
votes
1answer
33 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 ...
7
votes
2answers
450 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
2answers
2k views

PERL+mysql: undefined symbol: mysql_init

I've updated mysql (client+server+dev) from the rpms available on mysql.com. rpm -i MySQL-server-5.5.14-1.linux2.6.x86_64.rpm rpm -i MySQL-client-5.5.14-1.linux2.6.x86_64.rpm rpm -i ...
1
vote
0answers
408 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
306 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 ] && ...
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
367 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
448 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 ...
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 ...
1
vote
2answers
941 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
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 ...
-1
votes
1answer
540 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
421 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
222 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 ...
0
votes
2answers
130 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 ...