On Thu, 4 Jan 2001, Luke Waite wrote:
>Ok does anyone see something wrong with this? I am trying to have it
>upload the who 2 html snippet (slightly modified) from the ftp site
>
>It goes fine manually. But freezes when it goes into ftp
>
> system("ftp -n members.home.net"); /* The -n is because I can't
>get it to work without -- but works with -n manually */
You're confused as to what system() does, either:
1) man popen
Hint: FILE *writetome = popen("ftp members.home.net &");
or (recommended)
2) Don't do that.
Set up a scheduled task (cron or MS Task) to upload the file for you.
--
George Greer | If it's about the CircleMUD mailing list,
greerga@circlemud.org | mail owner-circle@post.queensu.ca instead.
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/03/01 PST