Guys, I'm not so good at network coding. I have a FTP server, client program and thus I can easily transfer files, however what I want is to modify the program such that server receives a c/c++ file, compiles the output, and sends a text file back to the client containing the output. The program should also take note that errors are also transferred. Any help is appreciated. My OS is Ubuntu.
How to redirect standard output to a file?
I want that all the letters/words the terminal is writing are copied into the new file created, and that file is to be send back to the client.