Questions tagged [perl]

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 that implements solutions to already-solved problems.

From the Perl documentation:

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 language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).


Free Perl Programming Books

If you are just starting out with Perl some of the references below may be worth looking in to.

596 questions
0
votes
1 answer

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 does create the file and a server that does not, and…
0
votes
2 answers

Is this script nefarious?

This is sitting in my web site's cgi-bin. Should I be concerned about it? #!/usr/bin/perl print <
binaryorganic
  • 6,021
  • 4
  • 18
  • 19
0
votes
2 answers

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 directories. I think it can be done by manipulating the…
0
votes
1 answer

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 script function test { ETH_PORT=eth0 echo…
Eytan
  • 611
  • 6
  • 13
  • 27
0
votes
3 answers

How to optimize mysql insert using perl?

I've got a log parser in perl and it uses the 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 It parses these lines and gets…
MealstroM
  • 1,517
  • 1
  • 17
  • 32
0
votes
2 answers

Help needed to write Linux program for basic system stats

I'm spending a lot of time manually reporting basic Linux system stats that I get from either Cacti monitoring tool and/or Top and ps command. I'm essentially writing a report in following format: Host: CPU Util: (if Idle % is…
steve
0
votes
1 answer

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 clue on how to install it. Update: Server isn't…
qballer
  • 153
  • 1
  • 1
  • 9
0
votes
3 answers

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 restarting the boxes. We're only using the box for PHP…
bryan
  • 133
  • 6
0
votes
5 answers

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 line. In Bugzilla, I have tried setting the…
donutdan4114
  • 103
  • 1
  • 3
0
votes
2 answers

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 do is run it, and have Linux report which programs…
Greg_the_Ant
  • 489
  • 7
  • 26
0
votes
1 answer

Install Lamp & Perl on Redhat 5.5

I need to install LAMP (including Perl) on a Redhat 5.5 machine. (Note: I am fairly new to Linux, but did do a similar project with ubuntu.) A good tutorial might suffice. Clients need to access a cgi-bin to run perl scripts (I don't yet know a…
John R
  • 297
  • 4
  • 10
0
votes
2 answers

Scheduling Perl Script in Cron.d

I am trying to schedule a perl script to run daily, but I am not sure if I am doing everything right. The script I want to run is to update AWStats each day, without manually having to press update. Currently, I created a file in the cron.d folder…
boburob
  • 1,174
  • 8
  • 23
0
votes
1 answer

Why would a UDP socket perform OK on wifi, but not on a cell network?

Noobish question - I have a perl script running on a linux server which opens UDP port 7015. netstat -ulnp shows: udp 0 0 0.0.0.0:7015 0.0.0.0:* 16365/perl nmap -sU -p 7015 'hostname' on a…
softex
  • 3
  • 1
0
votes
2 answers

SciLinux6 perl Test::Trap and Tk installation...how?

A more or less fresh install of SciLinux 6: [CODE] $ cat /etc/redhat-release Scientific Linux release 6.0 (Carbon) $ uname -an Linux bigbox.em.local 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12 17:14:50 CDT 2011 x86_64 x86_64 x86_64…
user52874
  • 829
  • 2
  • 12
  • 26
0
votes
2 answers

Why cant Perl find my Curl library?

I created a new module using h2xs which built a module tree for me and a bunch of files. Git as far as running make test but then make failed saying it couldnt find WWW::Curl, but I had installed Curl with Yum so I'm not sure why this is a…
qodeninja
  • 2,753
  • 10
  • 32
  • 33