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
-1
votes
1 answer

Perl script to restart Apache in Windows

Is this all I need to restart Apache from within my Perl script? system("C:\\Apache24\\bin\\httpd.exe -k restart"); I tried to verify that this actually restarts Apache, but cant find my Apache log file. And looking in Windows Task Manager under…
MeSo2
  • 254
  • 1
  • 3
  • 18
-2
votes
1 answer

Permission denied when executing perl via sudo

Command: ssh user@testhost "sudo -u tester env PERL5LIB=/home/tester/perl5/lib/perl5 /home/tester/perl5/bin/testperl" Result: Can't locate testperl.pm: Permission denied at /home/mogile/perl5/bin/testperl line 15. How can I fix the problem?
petertc
  • 2,500
  • 1
  • 15
  • 10
-2
votes
3 answers

Why perl script freezes my server?

I cannot make my perl-script run stable on the server. Here is the problem: When the script is accessed more than 5 times a second, the server freezes. And in some time later the server hangs forever. SSH does not respond and I have to reload the…
par
  • 1,263
  • 3
  • 12
  • 15
-2
votes
1 answer

Which scripting language to use to asynchronously ssh into equipment, run several commands, parse the output, and save to a file on my computer?

There are several points I'd like to stress in my question. I'd like to login by asynchronously ssh'ing into our infrastructure equipment. Meaning, I do not want to connect to only one device, do all the tasks I need, disconnect, then connect to…
Fujin
  • 185
  • 1
  • 1
  • 6
-2
votes
1 answer

Whats the best server-language for programing a Webcrawler?

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 be used for Data-Mining) Fastest at runtime?…
-2
votes
2 answers

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?
Skylervich
  • 93
  • 1
  • 5
-3
votes
2 answers

Convert SVN repository to git

$ svn --version svn, version 1.8.9 (r1591380) $ git --version git version 1.7.1 $ git svn clone http://host/path/to/project/ Initialized empty Git repository in /home/user/to/project/.git/ Can't load…
jsf80238
  • 127
  • 5
-3
votes
2 answers

perl one liners + add empty line after the last line

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 . more file IP=12.23.2.1 <-- last line
yael
  • 2,433
  • 5
  • 31
  • 43
-3
votes
1 answer

linux + count how many digits in IP address

I write the following syntax (exist in my ksh script) in order to find how many digits I have in IP address IP_address=127.1.1.1 echo $IP_address | sed s'/\./ /g' | wc | awk '{print $2}' 4 . IP_address=127.1.1 echo $IP_address | sed s'/\./ /g' |…
yael
  • 2,433
  • 5
  • 31
  • 43
-3
votes
1 answer

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 reboot from /etc/rc3.d I want to ask if it possible to…
yael
  • 2,433
  • 5
  • 31
  • 43
-3
votes
1 answer

how can execute complicated linux command inside perl

#!/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 -c $COUNT $myHost | grep 'received' |awk -F',' '{…
user1363308
  • 101
  • 1
1 2 3
39
40