I want to download a html file, by using this bash command
system("wget -q -E -O sample.html http://www.XXX.com");
sometime the file might huge, so I was thinking to do an infinite loop until the file is downloaded. Is it possible? If yes, how to do it?
Main Objective:
Download the html file, then proceed with the rest of the codes
I solve it myself. Can anyone close this question. I am terribly sorry
system()will block until the command has finished executing. You don’t have to do anything special to wait for it.