Tag: pl

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 »