Unix Programming - Re: problem with wget

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2004 > Re: problem with wget





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: problem with wget
olivier HARO

2004-10-19, 7:50 am

If thing you have not understood my problem


I want to download a document based on my web server, that's why I use
wget... (popen doesn't understand http urls, Am I wrong?)

The problem is that when I use the system(wget http://xxxxxxx.com), the C
program doesnt't wait the end of the system() function so that it implies
bugs.....
Is there any wait to download a http document in C language by an other way?
Is there a solution to my problem?


thanks! ;)


"Robert Harris" <robertdotfdotharris@blueyonder.co.uk> a écrit dans le
message de news:KeSbd.90226$BI5.34579@fe2.news.blueyonder.co.uk...[vbcol=seagreen]
> olivier HARO wrote:
me[vbcol=seagreen]
caracters[vbcol=seagreen]
or[vbcol=seagreen]
> Well, wget and system certainly work. (what does system return?)
>
> In any case, if you want the document itself (and not just the return
> code), you need to call popen(3) instead.
>
> Robert


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com