Re: [NEWBIE] Outside commands, FTP

From: George Greer (
Date: 01/04/01

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"); /* 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 &");

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,   | mail instead.

   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/03/01 PST