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.
597
questions
0
votes
1
answer
526
views
amavisd-new freezes: "Address already in use"
I have a mail server setup running on my Debian Jessie VPS which includes postfix, amavisd-new, SpamAssassin and a few other services.
All in all it seems my setup works pretty well and handles ...
0
votes
1
answer
445
views
Collectd is not working on centos 7.2 azure vm
I have a freshly install collectd on a new Centos7.2 64bit . I followed the instruction based on the below link
https://devops.profitbricks.com/tutorials/how-to-install-and-configure-collectd-and-...
1
vote
0
answers
438
views
Set up Bugzilla on IIS 10 with FastCGI
I'm a bit of an IIS noob so apologies if this is vague. I've successfully set up Bugzilla on IIS 10 but it's pretty slow - a few seconds to load each page even on the same local machine. As I ...
2
votes
0
answers
419
views
System reboot results in T_DKIM_INVALID spamassassin
I have installed and configured OpenDKIM in my Ubuntu 16.04 digitalocean vps and enabled the DKIM Plugin in SpamAssassin with loadplugin Mail::SpamAssassin::Plugin::DKIM in one of the .pre files ...
1
vote
0
answers
218
views
Openldap configuration on RHEL 6.6 client
We have a shell script which runs perl program to connect to LDAP server and make entries.
This is the only script which uses ldap. This server is hosting all batch related files and run batch jobs ...
1
vote
0
answers
606
views
Awstats shows no operating system
I have AWStats running for two applications and for both no operating system is displayed. Instead only "unknown" is shown (100%). All the other stats are interpreted correctly, only the operating ...
0
votes
1
answer
774
views
check_esx.pl doesn't work
I try to execute a shinken plugin: /var/lib/shinken/libexec/check_esx3.pl.
It fails.
error CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://dc-srv03.rthd.intra:443/sdk/vimService.wsdl'...
-1
votes
1
answer
2k
views
Uploading files in CentOS - permission denied
I am trying to upload files to a web server running Apache/2.4.6 on CentOS 7 using a simple Perl script. I get a permission denied message.
My code:
[user@machine cgi-bin]$ cat test.pl
#!/usr/bin/...
0
votes
0
answers
263
views
Ubuntu hangs while running make test in IO Socket ssl
Hello I am running ubuntu 14.04 and perl version 5.23.9 (compiled)
When I try to build the IO::Socket::SSL module , the machine always freezes.
So I installed the module manually. Download from ...
1
vote
1
answer
253
views
ssh gatekeeper script and system calls
I'm using the openssh gatekeeper script from calomel.org to make a semblance of two-factor authentication.
I've tried to use a curl to the localhost to send a randomly generated string via text ...
0
votes
1
answer
2k
views
Postfix, SPF, and Perl: warning: premature end-of-input on private/policy while reading input attribute name
I followed this guide (http://www.thenoccave.com/2013/05/08/centos-6-postfix-spf-checking/) but I'm getting the following errors in maillog:
May 8 22:15:13 ip-172-31-15-65 postfix/smtpd[1999]: ...
6
votes
2
answers
2k
views
Spamassassin: Bypass /etc/resolv.conf DNS for querying DNSBL?
Question
Is there a way to let spamassassin bypass my linux system's dns servers to query DNSBLs?
Background Info
When my Server receives email, it is checked by spamassassin. One of this checks ...
0
votes
0
answers
35
views
Fake httpd process masked under perl execution [duplicate]
I have apparently malicious php script somewhere in my webserver, Debian 8.3, Apache 2.4
Legal Apache process can be seen like this:
16169 www-data 20 0 482156 59180 41952 S 7.3 1.5 0:01.08 ...
1
vote
1
answer
4k
views
Unable to query DKIM because of DNS timeout [duplicate]
I run dkimproxy to sign outbound email and verify inbound email.
Since a while, I am experiencing the following permanent problem. The dkimproxy service is unable to query the DNS. Each and every ...
2
votes
0
answers
976
views
Server Hangup messges
First question on Server Fault! (If I have done anything wrong let me know)
I manage a server and also the 3 large perl based web applications, which run on this server.
The server is running CentOS ...
3
votes
1
answer
1k
views
Building old Perl from source - How to add math library?
When I make Perl 5.10.1 I get some errors, I found some related threads that stated:
The error messages are from the linker, not from the compiler. You should get away by placing a -lm at the end ...
1
vote
0
answers
76
views
Clean way to run Perl CGI script on Mac?
I'm trying to run a server to serve a Perl file on my Mac, but I'd like to not use Apache and its CGI. Is there a clean way, a la Python's SimpleHTTPServer, to run Perl without mucking with Apache?
0
votes
1
answer
746
views
SSH to ESXi server with Expect immediately closes
I am writing a VM deployment tool that needed to start VMs on an ESXi server. To do this I am using Perl's Expect module to spawn an ssh client to connect to the server and use vim-cmd to manage the ...
1
vote
1
answer
411
views
perl smokeping false packet loss
I'm getting false packet loss from time to time. The period lasts about month, you can see it on graph. We checked it using the same fping command and got no loss at all. So maybe were are hosts limit ...
-3
votes
2
answers
2k
views
Convert SVN repository to git [closed]
$ 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 ...
6
votes
3
answers
32k
views
Run Perl CGI Scripts On CentOS 7 With Apache/Httpd
My CGI Perl scripts CentOS 7 are not running correctly, they are either showing up as plain text or I am getting a server error.
I've been placing my scripts into the default /var/www/cgi-bin ...
3
votes
1
answer
2k
views
Windows 10 - Perl vs. dsadd/dsquery
I created a perl script for adding users to Active Directory a few months ago. On Windows 7 it runs fine. On Windows 10 perl is not able to run "dsquery" or "dsadd" but I can really not understand ...
-1
votes
1
answer
87
views
How to use the awk,sed Modify the text?
As follows, some text
16G 16G 1.9G 40G
4G 4G 952M 60G
16G 16G 1.6G 40G
5G 780M 5G 80G
I want to change all the unit from 'M' to 'G', like this
16G 16G ...
0
votes
2
answers
177
views
View what file started a process in linux
One of my servers started sending spam in heavy amounts. The server is using ISPConfig 3 and one of the web users most likely has a security breach.
I have identified the user and one file somehow ...
3
votes
1
answer
474
views
SELinux allow access for perl script via log rotate
I have a perl script that I want to run as a perorate script for log rotate. When I force log rotate to run from the command line as root, it works. However, when run through cron, SELinux prevents ...
2
votes
1
answer
58
views
Modify file before sending to cgi handler
I'm making a portable installation of Apache to run Bugzilla. This installation has a portable version of Perl and it's the one I want mod_cgi to use. However, mod_cgi doesn't have any way to ...
2
votes
1
answer
3k
views
CPAN is using old perl version to install modules
I installed Ubuntu earlier this weekend and had to install an updated version of perl(5.22.0) for a script I'm using. However when I used CPAN to install the modules I needed I found out that they got ...
1
vote
0
answers
266
views
HLS loadtest with VLC without GUI
Im out to test how many connections my HLS stream can handle.
So i think that VLC without GUI can be usefull to do the work.
But the problem is that i'm not manage to start the stream without ...
2
votes
1
answer
552
views
RKHunter report: "No hash value found"
I'm getting RKHunter warnings every day when my cron job runs the check.
I'm on FreeBSD 10.2
This is the warning I'm getting:
Warning: No hash value found for file '/usr/bin/perl' in the 'rkhunter....
0
votes
2
answers
941
views
Prepend String using perl/awk/sed?
I'm trying to script a change to my apache config file (httpd.conf). I'm trying to match the following string:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
And PREPEND the ...
1
vote
1
answer
632
views
Email gets heavily delayed in Bugzilla
In my bugzilla (hosted in Ubuntu 12.04), emails are geting delayed upto 24hrs and sometimes even more than that. I have also installed Jobqueue.pl as well.
But whenever i am checking the jobqueue ...
1
vote
0
answers
88
views
Random newlines in CGI warnings written to the Apache error log
Since upgrading a server from Debian 7.8 to 8.2 (64-bit) the Apache upgrade (to 2.4.10) has introduced a very strange fault: random newlines in error_log.
Example:
[Mon Nov 16 13:29:54.388526 2015] [...
-1
votes
1
answer
1k
views
I'm having trouble installing perl module Crypt::OpenSSL::AES [closed]
I'm having trouble installing a perl module onto my server called
Crypt::OpenSSL::AES
I'm using cpan to try to install it but it keeps coming back with an error:
Checking if your kit is complete......
0
votes
1
answer
2k
views
Change NFSEN to poll and graph every 30 seconds
I am asked to modify a default clean nfsen-1.3.6p1 install to to collect and poll every 30 seconds.
I "patched" libexec/NfSenRC.pm's nfdump command arguments that it uses to -w -D -t 30 -p $port -u $...
1
vote
3
answers
1k
views
How execute perl one-liner from perl script (properly escaped)
I have a perl script from within which I need to execute a simple perl one-liner on a remote host:
ssh 192.168.1.1 "perl -pi.bup -e 's/^(\s+?kernel)(.*)(?<!audit=1)$/$1$2 audit=1/' /etc/grub.conf"
...
1
vote
1
answer
2k
views
Apache environment variables for CGI not setting
I am trying to set my environment variables for the Apache webserver as it is not the correct Perl package. I followed the recommendation of one of the answers on Server Fault for updating the httpd ...
0
votes
0
answers
166
views
FastCGI: manager (pid YYYYY): server (pid XXXX) exited with status 13
FastCGI: manager (pid 6776): server (pid 20254) exited with status 13
FastCGI: manager (pid 6776): server (pid 18918) started FastCGI:
server (pid 18918): initialized
I am getting above mentioned ...
-1
votes
2
answers
548
views
Regex - match third number before a character [closed]
I have this string:
/dev/sda1 23G 46G 47G 22%
And want to match only the integer in 47's place.
I tried modifying the "match second set of numbers" example (i.e.,\d+[^\d*](\d+)) here to ...
0
votes
1
answer
496
views
Sending mail from perl applications with SSMTP
I am on host-server with Centos 7 and KVM virtualization. I have 2 guest systems which are in routed virtual LAN. One of them is WEB server, the other is a mail server. Web server has hostname example....
1
vote
1
answer
2k
views
Perl and nginx configuation
I'm trying to get the latest nginx running alongside Perl. I know Perl itself is installed, as I can run test.cgi perfectly from the command line. However, when trying to run from the browser I get a "...
1
vote
2
answers
368
views
Why perl backticks don't see anything past the first space?
I have a command
$output = `somecommand parm1 parm2`;
When I try to run this perl script I get.
Can't exec "somecommand" at .....
It seems it is not seeing anything past the first space in ...
9
votes
4
answers
27k
views
Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed
So, I'm new to CGI / Perl, I'm trying to move a perl-based web app to a new server.
My new server is CentOS 7, which runs Apache HTTPD 2.4.6.
I'm trying to get a basic Perl CGI working from an HTTP ...
1
vote
1
answer
643
views
How to customize munin alert message text
So, I use munin to monitor a couple hundred servers and I love it. I am trying to tweak the alert text to look a little different however, and I'm not understanding how to get it to do what I want.
I ...
1
vote
0
answers
358
views
CentOS7.1 missing many perl rpms
I just install a Centos7.1!
It seems to be missing soo many perl rpms.
Ex: perl-PerlIO-gz, perl-DBD-Sybase...
I can't seem to find them in any repo.
Any ideas?
Thanks,
1
vote
1
answer
159
views
Why my date command changed and how to restore the default one?
I'm having a problem in a RHEL 5.3 after I tried installing Perl Power Tools. Everything was working fine until I tried installing that package by hand (the server has no access to internet).
At ...
0
votes
1
answer
2k
views
how to view all process details from ps –ef command
hi all
I am using the ack.pl in my bash script to search IP's in the Linux OS
only for example , and only to show the problem I will give here short example
# ( ./ack.pl -Q -a -l --max-count=1 -...
0
votes
0
answers
1k
views
Where does Apache get the value for Perl @INC?
I run Apache2 server on Debian, user is set www-data and also group is www-data. When I run Perl CGI-scripts I noticed that their @INC differs from scripts I run from command line as same www-data-...
1
vote
1
answer
3k
views
Errors when running cron: grandchild #10010 failed with exit status 2: 1 Time(s)
In recent weeks I have seen this type of error many times on my debian 6 servers.
I have seen different exit status, 1, 2, 25, 255
Errors when running cron:
grandchild #10010 failed with exit ...
0
votes
1
answer
1k
views
Gentoo emerge packages conflict
I'm trying to install git on my Gentoo webserver. The command "emerge dev-vcs/git" returns the following result :
* IMPORTANT: 12 news items need reading for repository 'gentoo'.
* Use eselect ...
3
votes
1
answer
5k
views
GnuPG::Interface fails to install on CentOS 7
I'm trying to install a CentOS 7 server to run Request Tracker. By running make testdeps I can see all missing packages and make fixdeps is supposed to install this packages. There is one package that ...