cURL auto resume


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting cURL auto resume
# 1  
Old 03-04-2011
cURL auto resume

Searched here and google and couldn't find a viable solution. Is there a way to transfer a file with curl and have it automatically attempt to resume it if there's an error, broken pipe, interruption, etc?

Code:
 curl -C- -T myfile.tar.gz ftp.site.com --user DC_Slick:password

That's what I use whenever said interruption occurs manually, is there a way to script this or programmatically tell curl to resume my broken upload? Possibly from the first time I attempt to transfer a file. Thanks again guys.
# 2  
Old 03-04-2011
Code:
curl -T myfile.tar.gz ftp.site.com --user DC_Slick:password ||
        while ! curl -C- -T myfile.tar.gz ftp.site.com --user DC_Slick:password ; do true ; done

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Resume from last failed command

Dear Experts, I am creating a shell script (A) which is menu driven and in turn calls another shell scripts (X) depending on the selection. X has a list of commands which runs batch jobs in auto mode. Content of X ./sqr.ksh axhri051_sf axhri051_sf.par $1 $2 XHRPPYOV; ./sqr.ksh axbni062... (19 Replies)
Discussion started by: rprasad
19 Replies

2. Shell Programming and Scripting

Sm - mplayer wrapper with resume and more

This is a wrapper I use to play media files. If I quit I can restart, a big plus. #!/bin/bash # Title......: sm # Description: show media # Author.....: Mitchell Johnston - uid 0 # Contact....: mxj_97@yahoo.com #---------------------------------- # variables... (0 Replies)
Discussion started by: dragon-uid0
0 Replies

3. Hardware

Cannot resume from suspend with new motherboardktop, does not resume properly

I would like to get pm-suspend (or any other suspend method) working for a small new desktop computer. It is based on a Zotac GF-8200 ITX motherboard and an AMD Athlon II X@ 240 CPU using ArchLinux x86_64. The pm-suspend script works, apparently putting the machine into suspend correctly... (0 Replies)
Discussion started by: lagagnon
0 Replies

4. HP-UX

How can I resume process ?

hi every body lock at this situation and tell me your advice i tried to install patch in hp-ux v2 i used swinstall -s /path to the patch every thing was good but during the installation network connection between the server and my labtob when i connect again to the server i tried to... (2 Replies)
Discussion started by: maxim42
2 Replies

5. Solaris

Solaris resume

Hi Im in solaris field and i have one year of experience so can anyone get me a sample resume for level 1 support for solaris so that it will be easy for me to update my profile..:) (1 Reply)
Discussion started by: madanmeer
1 Replies

6. What is on Your Mind?

Are companies viewing my resume? How do I track my resume visits?

Hi everybody, I am wondering if there is any tool or website out there which can track who is viewing my resume. It is very frustrating when you send your CV or Cover Letter and you receive no feedback from the company, you don't even know if they have checked it out. Thanks for your help (1 Reply)
Discussion started by: gearyipswich
1 Replies

7. UNIX for Advanced & Expert Users

resume mount connection

I have a system mount between two servers , but sometimes the connection will be broken when the unstable network or reboot the server , then the mount will not be resumed , even I add the mount connection at /etc/inittab , I still found the mount connection is unstable , could suggest how can I... (2 Replies)
Discussion started by: ust
2 Replies
Login or Register to Ask a Question