Thread: Simple FTP Upload in C (In backround)

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Unhappy Simple FTP Upload in C (In backround)

    Guys.. I've looked everywhere.. But I simply can't find a way to program in C to let it upload just 1 file to a FTP server. I don't need any GUI or anything. Just so it does it every 5 minutes in the backround without me even knowing it.

    Thanks in advance!

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Look at the source for wget.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Guys..
    We're not all guys.

    >I've looked everywhere..
    I doubt that.

    >Just so it does it every 5 minutes in the backround without me even knowing it.
    It would be nice to know your compiler and OS. Platform-dependent and non-standard problems generally require that information.

    >Thanks in advance!
    Quote Originally Posted by Smart Questions FAQ
    (We must note that the only serious objection we've received from veteran hackers to this HOWTO is with respect to our previous recommendation to use “Thanks in advance”. Some hackers feel this connotes an intention not to thank anybody afterwards. Our recommendation is to either say “Thanks in advance” first and thank respondents afterwards, or express courtesy in a different way, such as by saying “Thanks for your attention” or “Thanks for your consideration”.)
    My best code is written with the delete key.

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    We're not all guys.
    I think saying "Ladies and gentlemen" is kinda... silly?

    There's a good way to do that, learn arbitrary FTP commands and use normal socket connection
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    You could use curl or do it yourself by learning sockets and study how the FTP protocol works.

  6. #6
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Actually I use Wininet for that but I just thought that would be too easy...
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 10:54 AM
  2. Simple Socialising Chat Bots
    By bengreenwood in forum C++ Programming
    Replies: 10
    Last Post: 11-28-2007, 08:42 AM
  3. FTP protocol
    By IfYouSaySo in forum Tech Board
    Replies: 5
    Last Post: 08-07-2006, 08:54 PM
  4. FTP Client
    By waldoayo in forum Networking/Device Communication
    Replies: 5
    Last Post: 04-29-2006, 11:49 AM
  5. FTP Upload
    By Smoose777 in forum C# Programming
    Replies: 1
    Last Post: 08-13-2002, 05:58 PM