I want to do an ftp get from within a c program, running on a solaris box. As far as I am aware there is no standard library function for this. Does anyone know of such a function or can they suggest an alternative.
Thanks
I want to do an ftp get from within a c program, running on a solaris box. As far as I am aware there is no standard library function for this. Does anyone know of such a function or can they suggest an alternative.
Thanks
> As far as I am aware there is no standard library function for this.
There isn't, but 20 seconds of searching found this
http://ibiblio.org/pub/Linux/libs/ftplib-3.1-src.tar.gz
Or you could do something crude like
system("ftp");
To run the resident FTP program
See the FAQ for better ways of running programs from within programs
See your local man pages for help on using your ftp program in a non-interactive mode
Thank you for the link. Local man pages are pretty crap on using ftp in a non-interactive mode. I am interested in learning how it could be done if need be. Have you got a better source than me?