November 15th, 2013, 02:04 AM
C Program To Send Data To Server
HI, I have an text file I want that file to be sent to server automatically at regular intervals how to write c coding for that?
November 15th, 2013, 10:20 AM
You don't write c code for that.
Instead, you write a batch script and work with your operating system's batch scheduler to set up the periodic invocations of your script.
[/code] are essential for python code and Makefiles!
November 15th, 2013, 10:25 AM
You could do it in C with a lot of work. Is that what you want to do? Do you already know how to do sockets programming? Do you already know how to program in C?
How do you send the file now on command? That's what you would want to put into a script.
November 19th, 2013, 01:10 PM
I suggest you to use sockets. I don't know about your experience with C, but the program should be pretty simple and straightforward. You will need two separate programs, one acting as a server (the one who will receive the file) and a second one acting as a client (the one who will send the file).
You can find plenty of examples on internet or books about C programming in Unix/Linux environments. Just search for sockets programming in C.