Calling an FTP from within a program

This is a discussion on Calling an FTP from within a program within the C Programming forums, part of the General Programming Boards category; I want to do an ftp get from within a c program, running on a solaris box. As far as ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    38

    Calling an FTP from within a program

    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

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    > 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

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    38
    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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 08:48 AM
  3. calling constructor crashes program?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 07-04-2003, 11:17 AM
  4. calling programs from a c++ program
    By md4u in forum C++ Programming
    Replies: 0
    Last Post: 05-04-2003, 07:39 AM
  5. calling c++ program from a webpage
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2001, 09:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21