Projects
Sunday, March 19th, 2006
Updated: March 19th, 2008
This page contains information about my current and past projects (work in progress):
- www.new-ipod.com and the GreenReporter application written entirely in Perl/Tk for the purpose of keeping track of freebie sites (freeipods.com, etc). Both have been sold to www.anything4free.com in the beginning of 2006.
- distributed multi-machine video fetch and processing system
- distributed cron replacement system
- threaded multi-machine SVN updater
FTPRush Cleanup Script
Sunday, October 28th, 2007
Updated: November 9th, 2007
Removes all ftprush queue items that don't download to localhost. It is useful to run if you FXP a lot of files back and forth and want to clean up the queues from time to time, but don't want to delete anything that is downloading. Feel free to make a shortcut to this script and run it any time you want.
Note that this script is only compatible with the ANSI FTPRush version. The Unicode version is not supported.
You need to have Activestate Perl installed in order to run this script. http://www.google.com/search?q=activestate+perl+download
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #!/usr/bin/perl
#
# AUTHOR: Archon810
#
# URL: http://beerpla.net
#
# DATE: 02/21/07
#
# ABSTRACT: Removes all ftprush queue items that don't download to localhost.
# It is useful to run if you FXP a lot of files back and forth and want
# to clean up the queues from time to time, but don't want to delete
# anything that is downloading.
# Feel free to make a shortcut to this script and run it any time you want.
#
# Note that this script is only compatible with the ANSI FTPRush version.
# The Unicode version is not supported.
#
# You need to have Activestate Perl installed in order to run this script.
# http://www.google.com/search?q=activestate+perl+download
use strict;
use Data::Dumper;
use File::Path;
use File::Find;
use Cwd;
my $ftprush_location = "C:\\Program Files\\FTPRush\\Queue"; # FTPRush queue location
sub return_file_list
{
my @filelist;
find(
sub {
if ( $File::Find::name =~ /rfq$/i )
{
push @filelist, $File::Find::name;
}
},
$ftprush_location
);
return @filelist;
}
foreach(return_file_list()){
open(FILE, $_) or die "Couldn't open $_";
my $file = ;
close FILE;
if($file =~ /\bLocal\b/){
print "File $_ contains localhost downloads\n";
}
else{
print "Deleting $_\n";
unlink or print "$!\n";
}
} |
Download the script here.

(No Ratings Yet)
beer planet is Artem Russakovskii's blog. Artem is a software engineer at