Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

aitap's scratchpad

by aitap (Deacon)
on Jul 08, 2012 at 10:20 UTC ( #980565=scratchpad: print w/ replies, xml ) Need Help??

root@desktop:/var/lib/transmission-daemon/info/torrents# perl -MFile::Slurp=read_file -MBencode=bdecode -E'@src = map { $_->[1] } grep { $_->[0] =~ /some_popular_tracker.example/ } map { ($a) = /^(.*)\.[0-9a-f]+\.torrent$/ or die $_; $b = s/\.torrent$/.resume/r; [ (bdecode scalar read_file $_ )->{announce}, (bdecode scalar read_file "../resume/$b")->{destination}."/$a" ];  } @ARGV; LOOP: { system qw/sudo -u aitap -H rsync -rvPz --size-only/, @src, "seedbox:/somewhere/"; redo LOOP if $? }' *
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (18)
As of 2014-08-27 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (242 votes), past polls