| Share |
Updated: May 23rd, 2009
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
Script source is available from SVN here.
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: Artem Russakovskii
#
# 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";
}
} |
Artem Russakovskii is a San Francisco programmer, blogger, and future millionaire (that last part is in the works). Follow Artem on Twitter (@ArtemR) or subscribe to the RSS feed.
In the meantime, if you found this article useful, feel free to buy me a cup of coffee below.
beer planet is a blog about technology, programming, computers, and geek life. It is run by Artem Russakovskii - a local San Francisco geek who is currently pursuing his own projects and regularly enjoys hacking Android, PHP, CSS, Javascript, AJAX, Perl, and regular expressions, working on Wordpress plugins and tools, tweaking MySQL queries and server settings, administering Linux machines, blogging, learning new things, and other geeky stuff.
Thanks. Download and use it.
Good day! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked hard on.
Any suggestions?
Feel free to surf to my webpage seo keyword competition
Thank you so very much for publishing this.
Feel free to visit my blog keurig coffee maker
This design is wicked! You certainly know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start my
own blog (well, almost…HaHa!) Excellent job.
I really loved what you had to say, and more than that,
how you presented it. Too cool!
Here is my weblog … http://www.masscops.com
Hey, I think your blog might be having browser compatibility issues.
When I look at your website in Opera, it looks fine but when opening
in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, superb blog!
Feel free to visit my web blog … download firefox
Today, I went to the beach front with my children. I found a sea
shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to her ear
and screamed. There was a hermit crab inside and
it pinched her ear. She never wants to go back! LoL I know
this is completely off topic but I had to tell someone!
My homepage :: seo web page design
I honestly love all of the hard effort that you've put into keeping this blog here for everyone. I absolutely hope this is around for a nice long time.
Feel free to visit my homepage; discount car rental
Your site is just what I was searching for. You have no idea how long
I have been questioning the same thing! I am so pleased that I am no
longer alone.
Here is my blog post … yahoo messenger download
Wow that was strange. I just wrote an really long
comment but after I clicked submit my comment didn't show up. Grrrr… well I'm not writing all that over again.
Anyway, just wanted to say great blog!
Feel free to surf to my weblog :: bible kjv
Hey would you mind stating which blog platform you're using? I'm planning to start
my own blog in the near future but I'm having a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something unique.
P.S Sorry for being off-topic but I had to ask!
Here is my web-site … Garcinia Cambogia
Appreciation to my father who informed me concerning this web site,
this weblog is truly awesome.
Feel free to surf to my web blog :: Buy Garcinia Cambogia
Hi there, after reading this remarkable piece of writing
i am also glad to share my experience here with friends.
my weblog visit the following web page
Hi there just wanted to give you a brief heads up and let you know a few
of the pictures aren't loading correctly. I'm not
sure why but I think its a linking issue. I've tried it in two different browsers and both show the same results.
Feel free to visit my page :: 1
I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty.
You are wonderful! Thanks!
I'm amazed, I must say. Seldom do I encounter a blog that's both equally
educative and entertaining, and let me tell you, you've hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. Now i'm very
happy that I came across this in my hunt for something concerning this.
Stop by my web blog; http://garciniacambogiaformulablog.com
Hi there! I understand this is sort of off-topic however
I had to ask. Does building a well-established website such as yours require a large amount of work?
I am completely new to running a blog but I do write in my
journal on a daily basis. I'd like to start a blog so I will be able to share my own experience and thoughts online. Please let me know if you have any kind of suggestions or tips for brand new aspiring bloggers. Thankyou!
Check out my site: backlinknedir.com
Hello There. I found your blog using msn. This is an extremely
well written article. I will make sure to bookmark it and return to
read more of your useful info. Thanks for the post.
I will definitely return.
Also visit my homepage – visit the next post
Very descriptive post, I loved that bit. Will there be a part 2?
Also visit my webpage – Max Thermo Burn Reviews
Great post. I was checking continuously this weblog and I am inspired!
I maintain such information much.
Extremely helpful info specially the last section
I was seeking this particular info for a long time.
Thanks and good luck.
Also visit my blog – Elva
I for all time emailed this website post page to all my
associates, because if like to read it after that my friends
will too.
Also visit my page :: Danilo
I hardly create responses, but i did a few searching and wound up here FTPRush Cleanup Script.
And, if you are posting on additional online sites, I'd like
And I actually do have 2 questions for you if you don't mind. Could it be simply me or does it look like a few of these remarks appear as if they are written by brain dead individuals?
to follow anything fresh you have to post. Could you list of
the complete urls of all your communal sites like
your twitter feed, Facebook page or linkedin profile?
Also visit my web-site; Lipo Slim
I rarely leave responses, however after reading a few of the comments on this page FTPRush
And, if you are writing at
Cleanup Script. I do have 2 questions for you if you do not
mind. Is it only me or do some of the remarks come across like they
are coming from brain dead folks?
other online social sites, I'd like to follow you. Would you list of all of all your public pages like your Facebook page, twitter feed, or linkedin profile?
Here is my weblog Click This Link
wonderful issues altogether, you just won a new reader.
What might you suggest about your post that you just made a few days in the
past? Any sure?
Here is my blog post – Jamika
Hey There. I discovered your blog using msn.
This is an extremely well written article. I'll make sure to bookmark it and return to read more of your helpful info. Thanks for the post. I'll certainly comeback.
Here is my web page: hcg for weight loss