C -communicating with system("ftp"); using "program|ftp>>myfifo" probably
I've got a very simple program here for which I can't find a reasonable explanation. I need a program which generates a static index for an FTP server... generally not much of a problem... I just use system("cat script|ftp ftp://user:email@example.com/path/>output.file"); with "script" containing nothing more then a simple "ls" and parse the resulting output.log.
Problem is, that requires me to re-login for each directory which takes some time, so I want to keep ftp running all the time and just issue some commands to it
I think popen() would be a much better solution to your problem. Check out the man page for it.
|All times are GMT -5. The time now is 11:07 PM.|