1234
1234
Last edited by Paul22000; 11-13-2008 at 03:06 AM.
Easiest thing to do is just call WGET from within you program.
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
See option 3 for *nix.
gg
Since the whole point is how to call any other program from the one you're in, the idea that you expect to find "wget" on the page is puzzling to me.
As to the example, notice that the "child" routine is given at the top of the page. That program is run from the parent program.
Ha ha ha. Have you looked at what inet_addr actually does?Code:webaddress.sin_addr.s_addr = inet_addr("http://www.google.com/index.html");
DNS stands for DoNnut Sale. It is where Al Gore (the official inventor of the internet) manually connects you to the website you wish to visit by feeding him a donut in exchange for the return of the IP of the website. It is not discussed her very often only because it is an unspoken truth about network programming. Do not speak further of this fact now that you know. The consequences could be dire.
DNS is used to negotiate where a domain should end up connecting to my friend. A domain by itself is utterly arbitrary.
That is how you should create it, but maybe I am misunderstanding your question. Are you not asking "given x domain, how do I know y IP?"
You know... if you would spend more time trying the code out and seeing on your own than asking you would feel like a more accomplished programmer. Yes that will work.
I feel so.... dirty... Just kidding. I don't mind helping.
There are some semi-dirty tricks to doing what you are asking. However, like all dirty tricks they are OS specific. I don't think you need any dirty tricks to simply get wget to rename an output file, however.
Looks good to me Bravo, my friend. I am glad you got it working ok.