Useful Scripts I've Written

Here are a bunch of Perl scripts that I wrote. They are all either in use now or were once indispensible to me. Documentation ranges from poor to good, but most have help banners when run without argument. Email me with questions and comments if you like...it's entirely possible I'll even respond.

ScriptDescription
dupekill.pl Command-line utility for deleting duplicate files within a file mask. Updated to version 1.1 as of 3 October 2005 (added much better syntax, including recursive search).
EXIF-rot.pl Command-line utility to rotate JPG images from a digital camera according to the EXIF AutoRotate tag. Uses ImageMagick and a Perl EXIF extractor (see source for details).
imapdump.pl Command-line utility to dump the entire content of an IMAP account to text files suitable for archiving.
InstantWebServer.pl Creates a tiny web server rooted in the current directory. Dead simple, with no security whatsoever. Useful for easy file transfer in a pinch.
msgbox.pl Displays a Windows message box specified on the command-line...intended to be executed by other programs. Win32 only.
rname.pl Command-line utility for regular-expression-based renaming. Recommend using -y option to preview changes before committing.
songeval.pl Command-line utility to iterate songs in the current directory by controlling WinAmp via HTTP using the httpQ WinAmp plugin. For each song, you press a number key to move that song to a directory named for that number. This allows you to sort music into categories such as sucks and good with a minimum of interaction.
vdub.pl Command-line utility apply a VirtualDub settings profile to a video. Uses the scripting interface. Requires VirtualDub, so its Win32 only.
WebProxy.pl A quick and dirty web proxy...but not a traditional proxy. Allows you to go to http://proxy.running.host.com/http://some.other.website.com/, and be shown http://some.other.website.com/. All HTML links will be translocated so that http://proxy.running.host.com/ is prepended. Only supports GET method via HTTP/1.0, and gets confused by very strange URLs. It does well enough (it was used to defeat a dumb proxy that blocked Google).
purl.pl This ones a bit of a hack...I have a web server use this script as the Perl interpreter rather than /use/bin/perl. The script then forks a real Perl to actually execute the script, and collates the STDERR at the end in a box with red text. Thus, error messages appear in red at the bottom of the document rather than being hidden or logged...sort of like PHP.



Back