PDA

View Full Version : How can I run a small ftp script from C program



bazeemuddin
07-01-2003, 03:12 PM
open 192.1.1.111
basheer
test123
bi
cd /ftp
mget report.*
bye

--------------
I run this from a win script (ftp -i -v -s:ftp1.bat)

I want to write a C program to do the same.
compile it and give exe to users to run.

(I dont want the user to know login name and passwd) basically avoiding any access to unix other than getting some files when a user wants to)

How can I do this in C program

Hammer
07-01-2003, 05:04 PM
There's some examples of running programs here:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044654269&id=1043284392

What compiler are you using?