
Tag: Perl

Remove non-ASCII characters from file
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 »