20 votes

What happens to an ssh process if the local IP address changes?

Yes, that's expected behavior. Your connection was physically interrupted, after all. If an interruption in your connection may cause a failure of a long running remote process, consider running it in ...
Michael Hampton's user avatar
14 votes

What happens to an ssh process if the local IP address changes?

If you do not want to run ssh commands in the background (manually) you may give mosh (mobile shell) a try. It's available for probably any distribution and system including various BSD, Android, ...
Beko Pharm's user avatar
7 votes

500 internal server - AH02429: Response header name

You have a key header with invalids characters, it wasn't a problem untill security fix CVE-2016-8743. https://blog.tigertech.net/posts/apache-cve-2016-8743/ In my case wasApache + PHP and a ...
GroGz's user avatar
  • 71
7 votes
Accepted

Installing XML::Parser, but it dies due to Expat dependency

In order to get the libraries and header files you need, you should follow this line in the output: Install 'expat-devel' (or 'libexpat1-dev') package with your OS package manager. Just expat won'...
Jenny D's user avatar
  • 28.1k
7 votes
Accepted

WWW::Mechanize Perl module won't install on server

Perl CPAN packages installed as Linux distribution packages [Debian/Ubuntu] Install perl packages as your Linux distribution packages if possible. It is possible for WWW::Mechanize on Ubuntu (and ...
AnFi's user avatar
  • 6,278
6 votes

How to do an unattended / silent CPAN install / setup

You should generally prefer to use distribution package mangement for Perl modules on Linux where possible, but sometimes the module you need isn't carried, you're using a different version of perl (...
Craig Ringer's user avatar
  • 11.2k
6 votes

Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed

I see from your own answer that it was a SELinux permissions issue due to trying to run CGI scripts from within apache in a non-standard directory. The proper way to solve the permissions issue while ...
André Fernandes's user avatar
5 votes

Spamassassin: Bypass /etc/resolv.conf DNS for querying DNSBL?

Spamassassin (Mail::SpamAssassin::DnsResolver) uses Net::DNS::Resolver perl module. It should allow you to change nameservers spamassassin uses via RES_NAMESERVERS environment variable.
AnFi's user avatar
  • 6,278
5 votes
Accepted

Can't install Image::Magick, even though Image Magick is installed

My recommendation would be to avoid installing modules from source with CPAN when your distribution also provides them as normal packages. Using the normal packages allows you to benefit from the ...
HBruijn's user avatar
  • 80.3k
4 votes

Force all Perl scripts to run with `use strict`

There is no substitute for a good code review process and people who care about it. Make strict the default by including it in templates, should be as automatic as a copyright header. File issues. ...
John Mahowald's user avatar
3 votes
Accepted

Cannot run perl script with sudo

You may get such an error if the module you are using is not installed which seems not our case here. The other possibility is to have a different @INC array between the two users you are running as. ...
Khaled's user avatar
  • 36.9k
3 votes
Accepted

Linux "iostat" to .csv file using Perl

Typically the same data that iostat collects and displays is also collected by sysstat a.k.a. sar sar comes with a supporting tool sadf that can easily display the collected stats in a number of ...
HBruijn's user avatar
  • 80.3k
3 votes
Accepted

SMTP error 554 5.7.1 and 221 2.7.0

Breakdown of the errors for completeness - Net::SMTP=GLOB(0x51d1810)>>> RCPT TO:<[email protected]> Net::SMTP=GLOB(0x51d1810)<<< 554 5.7.1 <[email protected]>: ...
USD Matt's user avatar
  • 5,391
3 votes
Accepted

error while installing perl-Moose on red hat linux

The missing packages are in the RHEL optional channel, which you need to enable first. subscription-manager repos --enable=rhel-7-server-optional-rpms When using RHEL on AWS, enable it this way ...
Michael Hampton's user avatar
3 votes

What happens to an ssh process if the local IP address changes?

Yes, it's normal. A TCP server identifies a connection by the combination of local address, local port, remote address and remote port. Since you talk about "the local public IP address changes&...
Peter Green's user avatar
  • 4,296
2 votes
Accepted

Building old Perl from source - How to add math library?

I encountered the same problem when I was building Perl 5.8 included in the SPEC benchmark suite on a Lemote 8089 laptop with a MIPS processor running GNewSense 4. Perl failed to build because it ...
nitroglycerine's user avatar
2 votes
Accepted

Pure Perl RPM Version checker

Some hints You do't need grep e.g. rpm -q radvd radvd-1.9.2-9.el7.x86_64 echo $? 0 If a package is missing $? is 1 rpm -q nc package nc is not installed echo $? 1 You can get the version of an ...
user9517's user avatar
  • 116k
2 votes

What PERL env vars need to be set for a local install?

I don't think you should need any environment variables to be set, as long as your Perl is installed correctly. Simply invoking your perl interpreter should be sufficient. Environment variables ...
Charley's user avatar
  • 258
2 votes

sed + replace value default in grub.conf

The script in the original version of your question contained an error in that the variable name all-servers is illegal. The - character is not allowed in a shell variable name. Valid characters are [...
user9517's user avatar
  • 116k
2 votes

Apache perl script plain text output

When the contents of a script get rendered as plain text, rather than the script being executed, that the might be observed for instance when the correct module for CGI support has not been loaded ...
HBruijn's user avatar
  • 80.3k
2 votes

Uploading files in CentOS - permission denied

CentOS 7 includes SELinux, which doesn't allow web server processes to write to user home directories (though it can be set up to allow read from user home directories). To resolve the problem, ...
Michael Hampton's user avatar
2 votes

Setup Oracle instant client on CentOS/RHEL Linux - for PHP and Perl

I had the same problem. SOLVED adjusting de enviroment variable ORACLE_HOME, like this: export ORACLE_HOME=/usr/lib/oracle/11.2/client64 And inside $ORACLE_HOME I have respective subdirectories: ...
user415075's user avatar
2 votes

Setting locale permanently fails on VPS machine Ubuntu server 16.04

You can try using sudo localectl set-locale LANG=en_GB.UTF-8 or sudo localectl set-locale LANG=en_GB.UTF-8,LC_ALL=en_GB.UTF-8 to set the language (which was not set) (and optionally catchall) to ...
tobyd's user avatar
  • 481
2 votes

How to do an unattended / silent CPAN install / setup

Please consider: sudo cpan install YAML::XS <<<yes
aaaaa's user avatar
  • 21
2 votes

Spamassassin: Bypass /etc/resolv.conf DNS for querying DNSBL?

I had set up BIND Named on my laptop, following an old version of Spamassassin's documentation to "Disable forwarding for DNSBL queries"; it requires that I point /etc/resolv.conf to 127.0.0.1. But I ...
Metamorphic's user avatar
2 votes
Accepted

Killing a Perl process in Linux

Just kill it by its process id (PID), like any other linux process: $ kill 12345 If you don't know the PID, you can figure it out with ps: $ ps -ef | grep myperlscript user 3936 3904 0 Feb02 ? ...
André Fernandes's user avatar
2 votes

Installing GD Perl module on Ubuntu 16

Eugh, and as if by magic (AGAIN!). I just found this post: https://unix.stackexchange.com/questions/324342/how-to-instal-perl-modules-gd-and-gdpolyline-in-debian ...and they suggest running: apt-...
Andrew Newby's user avatar
  • 1,184
2 votes

Spamassasin not checking SPF - Perl error?

It appear you don't have SPF installed. You should be able to install it using the command: sudo yum install perl-Mail-SPF -y
BillThor's user avatar
  • 28k
2 votes

Can't install WWW:Curl on new Ubuntu 16.04 server

Typically, I now found the answer! I found this post: https://stackoverflow.com/questions/42290344/failed-during-install-wwwcurleasy-in-cpan So running this: apt-get install libwww-curl-perl ......
Andrew Newby's user avatar
  • 1,184
2 votes

500 internal server - AH02429: Response header name

As @GroGz says, this issue is almost certainly caused (or rather exposed) by the fix to CVE-2016-8743 - the parsing of HTTP headers was made much more strict in an update to Apache released on 20 ...
S. McLauchlan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible