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 »

Back Up and Clear Windows Event Logs with Perl

Years ago, I combined and modified several pieces of Perl code to create a Windows Event Log backup utility. The original version was based partly on an Event Log script included with some Windows Perl distributions. This version can: Back up Windows Event Logs to the C:, D:, or E: drive. List the fixed drives available on the computer. Create…

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 »