cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftpupload.c in SCO openserver

From: behrouz zolfaghari <behrouz.z_at_lycos.com>
Date: Thu, 29 Jul 2004 05:04:58 -0500

I'm really sorry
Linus
I didnot intend to,...
I just needed an example. I'm not as lazy as you think.
But I do not have the required hardware at home to test the correctness of the script and I need it to work without testing for somewhere else.
I'm sorry again.
and thanks alot for your sample.
you're very kind.

----- Original Message -----
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Thu, 29 Jul 2004 09:40:08 +0200
To: libcurl development <curl-library_at_cool.haxx.se>
Subject: Re: ftpupload.c in SCO openserver

> behrouz zolfaghari wrote:
>
> > thanks can i expect the favor to send me the script which uploads a
> > file using curl and resumes the transmission in the case of
> > connection fail?
>
> You seem to be a really lazy person! What is stopping you from reading
> the curl manual, google for some shell script examples and do it yourself?
>
> The least you can do is to try it yourself before asking us to do it for
> you. Having us do your job for free is just plain rude.
>
> Anyway, here's an example of what it can look like:
>
> ---------------------------------------
> #!/bin/sh
>
> file=$1;
>
> cnt=0
> curl --upload $file ftp://ftp.thesite.com
>
> while [ $? -ne 0 -a $cnt -lt 10 ]; do
> let cnt=cnt+1
> curl --upload $file --continue-at - ftp://ftp.thesite.com
> done
> ---------------------------------------
>
> It stops after 10 attempts.
>
> Linus
>

-- 
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
Received on 2004-07-29