Ken, can you pipe and forget to a file and keep reading the text file from rev.
curl bla bla bla > progress.txt right? On Thu, Mar 4, 2010 at 3:28 PM, Ken Ray <k...@sonsothunder.com> wrote: > I have some large files (100MB +) that I need to FTP to a customer's > server. > I have tried to use libURL to do the uploading, but I get odd > results/random > timeouts/errant status messages when the file I'm uploading is over 40MB. > I've tried many different workarounds to this, but none have been > consistent/acceptable so for this project I'm seeing if I can use curl. > > The pain is that there doesn't seem to be a way to retrieve the progress of > an FTP upload so I can display a custom upload box. If I redirect it to > dev/null, I get control back after the upload starts, but I can't get any > progress data: > > curl -T filePath -u user:pass serverAdress > /dev/null 2>&1 & > > If I redirect to stdin, it's blocking and I only get anything when the > upload is complete: > > curl -T filePath -u user:pass serverAdress > stdin > > I've also tried: > > curl -T filePath -u user:pass serverAdress > stdin & > curl -T filePath -u user:pass serverAdress > stdin 2>&1 & > > Is there any way to make a non-blocking call to curl, but then to get back > the progress text that would normally be displayed in the Terminal? > > Any help would be appreciated... > > Ken Ray > Sons of Thunder Software, Inc. > Email: k...@sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution