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

1
vote
1answer
63 views

tomcat server not running after uncommenting servlet tags in web.xml

I am running tomcatserver and i need to execute a perl script. I searched online and found out that i need to uncomment in conf/web.xml <servlet> ...
0
votes
0answers
204 views

How to delay xinetd starting a process until data is received

I maintain a server that receives data on many ports using xinetd in tcp mode. The data is processed by a perl script. Twelve of the 16 clients that connect to my server that way, apparently also ...
0
votes
1answer
178 views

Hardcoded password vs using `cat` to retrieve from file

I'm using Zentyal (formerly EBox) as my home gateway/server, to evaluate it for possible use in a local organization. I wanted to change the root MySQL password, which I did, and mistakenly changed ...
0
votes
2answers
461 views

Installing /usr/bin/perl install-module.pl Encode::Detect throws /usr/bin/make — NOT OK

I am installing PERL and its modules (to install bugzilla thereafter) on my Centos 5.8 VPS. When I install /usr/bin/perl install-module.pl Encode::Detect it throws and error /usr/bin/make -- NOT ...
1
vote
1answer
482 views

Missing perl modules error for properly installed perl modules on FreeBSD 8.3, perl 5.16

Trying to run a Nagios plugin on 8.3-RELEASE-p3, I get the error: Missing perl modules: Net::SMTP::SSL I have rebuilt the ports for both p5-Net-SMTP-SSL and perl5.16. cpan -i Net::SMTP::SSL reports ...
0
votes
2answers
419 views

Proper acting when a process is consuming 100% time of CPU

On several machines I have a problem with a process that is using 100% time of a CPU. USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 85740 100.0 0.2 34668 ...
4
votes
3answers
181 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 ...
0
votes
1answer
467 views

Monitoring HP Proliant iLO whith perl script in Nagios

I'm trying to monitor an iLO with this script: ...
0
votes
0answers
40 views

httpd service keep restarting. after 15-20 mins

I have recently purchased Dedicated Server which has 16bg ram and 1TB Harddisk. It has Cpanel and for firewall CSF Installd. I am mainly going to install it for File hosting service. Now the day ...
0
votes
0answers
39 views

cgi-bin for virtualhosts in apache

Let's assume that I have 2 virtualhosts running for the domains domain1.com and domain2.com. For these domains I set the documentroot to c:\server\htdocs\user\domains\domain1.com and ...
2
votes
2answers
221 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 ...
0
votes
1answer
79 views

mod_fastcgi.so + FCGI (perl) make 500 error with graceful restart on apache 2.2

We'd like to construct a perl (FCGI) application on apache2.2 with mod_fastcgi.so but it makes 500 error when I graceful it. Do you have any idea or solution for it? LoadModule fastcgi_module ...
0
votes
2answers
145 views

How to process incoming email sent to a catchall address (and a few valid email addresses)

I need to build a web application where people can send an email to custom email addresses (like - 1week@example.com, or 2days@example.com) and the email address '1week' and '2days' is used to perform ...
1
vote
1answer
94 views

Self compiled Perl package Centos [duplicate]

I have a Centos 6 server.. I have compiled Perl 5.16 in it (in a non-standard location). Now when I try to install Some package which is dependent on Perl using yum.. Yum tries to install Perl ...
0
votes
1answer
155 views

linux + exit status from perl one liner code

I use perl one liner in my ksh scripts some times its necessary to get exit status from the perl one liner in order to very if perl one liner succeeded or not for example I need to verify if the ...
0
votes
1answer
107 views

perl Net::DNS weird error (root servers “did not give answers”)

I'm trying to install Net::DNS as part of setting up ASSP Deluxe. I've installed my own 5.14.1 perl on a CentOS box, and when it tries to 'make test' Net::DNS, I get: Servers [202.12.27.33 ...
0
votes
1answer
283 views

How to use abstract names of unix domain sockets with fastcgi in nginx?

I tried some perl examples of unix domain sockets using abstract names: Created a socket starting with a null character: my $socket_path = "\0wibble"; using netstat -nlp I can see the socket: unix ...
0
votes
2answers
422 views

installing MIME::Tools fails with an error in t/Smtpsend.t

System: debian 7 x64 RC 1 Perl Version:v5.14.2 When trying to install MIME::Tools I can't get it to properly compile. cpan[4]> install MIME::Tools Going to read '/root/.cpan/Metadata' Database ...
0
votes
1answer
198 views

Linux how to run a script in the background on a remote server? [closed]

I'm on a linux machine. I would like to run four perl scripts on a remote server. Each script produces a single output file but it can take hours to run. I would like to run the scripts in the ...
0
votes
1answer
208 views

Automatically prepend executable Perl scripts using .htaccess (like php_value auto_prepend_file)?

I have previously built sites using PHP, where I automatically included header and footer html using the following lines in .htaccess on an Apache host: php_value auto_prepend_file ...
-1
votes
1answer
173 views

Apache errors - *** glibc detected *** Backtrace - perl

I have been getting these errors in my apache logs on my server - it only happened once a day or every two days. Any idea what could be causing this? I dont even have an idea of where to start? *** ...
0
votes
1answer
62 views

command in perl script not working

When I place this command in a perl script, it won't work: `chkconfig --level 3 nslcd on`; But if I execute it on a linux command shell, it works. [root@barf Scripts]# chkconfig --level 3 nslcd on ...
0
votes
1answer
784 views

Sendmail Spamming Recipient

I am using a perl script to send daily status to my gmail account. For some reason, sendmail seems to be spamming gmail although I am only sending one email Gmail is complaining about a failed ...
0
votes
1answer
412 views

Need equivalent of command with nmap, awk and grep for Windows machines with PowerShell and/or Perl

Please see this thread for reference How can I scan using nmap and Zenmap all hostnames that begin with a particular string? One of the answers in the thread above uses the following query (I take ...
0
votes
1answer
189 views

Net::FTPSSL Perl module rename does not work

I'm using the Perl module Net::FTPSSL and 'rename' does not work, everything else does. I've verified the file is there and I can rename it using gui based ftp client but not through the Perl module. ...
-3
votes
1answer
159 views

What does fork() mean in Perl? [closed]

I have a block of Perl code. I'm having some trouble understanding the same. if(my $child = fork()) { #Do somthing } else { #Run system command return; } Could anyone please make me ...
1
vote
1answer
190 views

How can I run a Perl script in a different timezone?

I need to run a Perl script, but make it think that it is in a different timezone (GMT) than the server is configured to use normally. I would like to do this without modify the existing script, by ...
0
votes
2answers
71 views

Modules to protect PHP and Perl from accessing other users file/data? [closed]

I've use to use a combination of suPHP with suExec in order to try to protect the users and limiting the PHP/Perl from running out of their allowed space (i.e.: user/tmp folders). Its been a while ...
0
votes
2answers
59 views

Create a process whose ruser and user are different

Could anyone please help to find a way to create a process whose ruser and user are different? Currently, I used the line sudo su david -c ./test.pl, Then when I type the following line to get the ...
1
vote
2answers
45 views

Perl regex expression

I have the following string produced by a server log file. I am using Simple Event Correlator (which uses perl regex) to manipulate lines: 18:37:31 643.65.123.123 []sent ...
0
votes
1answer
146 views

Remove text between delimiters in linux [duplicate]

Server got hacked and a fair amount of files were edited. We noticed that the code that was inserted were typically done between delimiters (e.g. /*e21234*/ blah blah /*/e21234*/). What is the most ...
1
vote
1answer
115 views

Is it possible to dry-run install a CPAN bundle?

I'm migrating from one server to another and using perl -MCPAN -eautobundle to work out which modules I should be bringing along. Some modules are a bit problematic at install-time though (mainly due ...
-1
votes
2answers
354 views

linux/solaris insert date & time at the beginning of each line in file

I want to add date & time at the begging of each line in some file I used sed in order to add the date & time before each line in file please advice what I need to update in my sed in order ...
0
votes
1answer
122 views

Install PAR packer in solaris 11

Installing par packer in solaris 11 is throwing following error. i had used perlgcc but didnt help Has anyone faced the similar issue? How can i install it successfully # perlgcc Makefile.PL # make ...
1
vote
2answers
445 views

BugZilla: Adding PerlConfigRequire to apache2 conf generates errors when restarting service

I've been following the BugZilla installation documentation and using mod_perl w/ apache2. Everything has gone fairly smooth and bugzilla pages appear to be getting rendered and served correctly, but ...
-3
votes
2answers
78 views

perl one liners + add empty line after the last line [closed]

please advice what need to change in the perl syntax in order to add new empty line after the last line? example IP_INFO=12.23.2.1 echo IP= | perl -pe "s/$/$IP_INFO/" 1>>file . ...
1
vote
3answers
136 views

find files with non-zero size in shell

I need to get a list of names of files with non-zero size inside a directory. This should be in a shell script, so bash (or a Perl one-liner) would be ideal.
0
votes
1answer
216 views

grep to IP address when IP address in parameter

I need to grep to IP address ( as the following example ) , I use ksh script , # ifconfig -a | /usr/xpg4/bin/grep "100\.106\.2\.120 " inet 100.106.2.120 netmask ffffff00 broadcast ...
0
votes
2answers
435 views

Is it possible to include/use directly perl's Nagios::Plugin without installing it? [closed]

I am a web developer needing to monitor a vast array of servers with nagios and have to write some perl scripts for it. Looking into it I found Nagios::Plugin package from CPAN, but the servers don't ...
0
votes
1answer
45 views

MySQL creds accepted from CLI but not from Perl DBI [closed]

I have a remote MySQL server. I can log in from the client machine using: mysql -h 172.16.0.7 -u mysqlUser -p and it connects fine. When I use a simple DBH connection in Perl, with same ...
0
votes
1answer
304 views

Perl script which returns multiple exit codes

I have a Perl script that executes another Perl script inside it: #!/usr/bin/perl use strict; use warnings; use Getopt::Long qw(:config no_ignore_case bundling_override); no warnings 'uninitialized'; ...
0
votes
0answers
197 views

Strawberry perl 5 .6.21 cannot locate swtich.pm when i run perl scripts via perl commandline

im trying to run a pulledpork.pl script in conjunction with snort. The pulledpork.pl script can work i believe, but for some reasons. strawberry perl cannot locate switch.pm and thus is aborting ...
1
vote
1answer
176 views

perl app on apache and cgi behaves terribly with 504 gateway timeouts

Note: This question is about my server configuration giving 504 timeouts. I made a project here http://www.tryperl.com/ (requires auth with GitHub to sign in). Please be kind, I'm working on to learn ...
0
votes
1answer
427 views

Troubles monitoring a zimbra installation with nagios

I am trying to monitor my legacy zimbra installation (running on an outdated Ubuntu 8.x) from my nagios install (running on a more recent OpenBSD). The problem is that when I run check_nrpe from the ...
0
votes
1answer
116 views

narrowing why server post from perl web app fails on ec2

Update: I corrected the below permission issue and I can read the log files dancer generates. There was a small code bug, fixed. So now the logs display nothing, but my POST request still just fails ...
0
votes
1answer
122 views

grep + match value only if value in the end of line

please advice what is wrong with my code, ( I run this code on both OS linux and solaris ) I don't get the line from: "file ended with .tmp" example: I need to verify if $FILE ended with .tmp ...
-1
votes
2answers
104 views

All Details of a Running Process [duplicate]

Possible Duplicate: How do I deal with a compromised server? This process is running on my Linux server and is sending spam (connecting to port 25 and port 80 with random IP's). top - ...
1
vote
2answers
152 views

Making a user account dedicated to a single script in centos

I am trying to make a SSH login for someone on my box. But when they login I want it to auto load a perl script and for them ONLY to be aloud to see / use that perl script. I only know how to use ...
7
votes
3answers
221 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 ...
0
votes
1answer
317 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...