Re: Temporary errors

Paul Richards <[email protected]> Fri, 08 Aug 2003 15:42:28 +0100
Newsgroups gmane.network.ubh
Message-ID <3W8051NHVT87LKYWC0VRQQN98A0T.3f33b6d4@swtdv11>
08/08/2003 15:37:53, "lorphos" <[email protected]> wrote:

>How can I retry the download if there are temporary errors? I tried to
>work with ubhmark but couldn't get it to re-do downloads that it had

I use this little script

#!/bin/sh
mysql ubhcache -pYOURPASSWORD <<EOF
update headers set status="UNREAD" where subject like "%$1%" and subject like "%
$2%";
update assemble set status="COMPLETE" where status="FINISHED" and subject_part l
ike "%$1%" and subject_part like "%$2%";
select * from assemble where subject_part like "%$1%" and subject_part like "%$2
%";
EOF

Then for example
./retry somefile part02


Regards
Paul



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/IHFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/