Tag: Perl

Resolve conflicting requests with perl:5.26

After a CentOS 8 to Rocky Linux 8 conversion attempt that went surprisingly well, there appeared to be an amanous error message that presented itself each time a simple command of yum list installed was issued. Problem Problem 1: conflicting requests – nothing provides module(perl:5.26) needed by module perl-DBD-MySQL:4.046:8030020210430225703:3a70019f-0.x86_64 Problem 2: conflicting requests – nothing provides module(perl:5.26) needed by module…

Read More »

Remove non-ASCII characters from file

There was a text file that contained non-ASCII characters that acted like spaces within the file, so I used the tried and true dos2unix command to attempt to clean the file; however, the characters remained.  With hundreds of lines to correct, manually deleting the offending areas of the file was not an option.  A real solution is needed. Once again,…

Read More »

Perl Script to Backup Event Logs (Updated)

Years ago, I had hacked up various pieces of code to create a variant to the event logs backup scripts that are floating around the internet. There is a script that I have seen that comes with (at least) the Windows Perl releases. This is an updated script for use with Perl and Windows to backup event logs. The differences…

Read More »

Linux script with bad interpreter: No such file or directory error and fix

I had written a script that worked on one machine but not another Linux installation, Red Hat Enterprise Linux 5. The script returned an error with “bad interpreter: No such file or directory” and referenced the first line of code. I could not visually see the error as it looked to be like any other script. The problem turns out…

Read More »

Perl Script to Backup and Clear EventLogs

All over the internet are the same instructions and the same Perl script to backup and clear the eventlogs. However, the Perl script does not clear the eventlogs. Under each of the explanations is the clear function is not implemented. The Issue The original code only backups Application, System, and Security eventlogs. Over the years, the newer OS versions of…

Read More »