Thread: How can I run a small ftp script from C program

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    3

    Smile How can I run a small ftp script from C program

    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

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    There's some examples of running programs here:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284392

    What compiler are you using?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help on making program run more efficiently
    By peeweearies in forum C Programming
    Replies: 2
    Last Post: 03-23-2009, 02:01 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. Make a program run at startup
    By cookie in forum Tech Board
    Replies: 2
    Last Post: 06-08-2007, 08:36 PM
  4. This is how to get your program to run fullscreen (console)
    By Raigne in forum Windows Programming
    Replies: 11
    Last Post: 11-25-2005, 08:26 AM
  5. Replies: 5
    Last Post: 04-17-2003, 07:07 AM