1: What you are looking for is a "screen" shared session. With this application and an ssh connection, you can share a terminal, running a command like based text editor like nano, emacs or vim.
2: You have many choices. this system(""); function will execute a command and wait until it end (and grab the returned integer). The popen() command from unistd.h (windows.h equivalent) will return the text of the command when it is over. And the fork+exec+pipe way (a standard Linux programming algorithm) will execute the command in real time in a thread (more specifically a child process, in this case) and will send the result as they arrive in the main process. All of these method are good depending on what is your goal.
3: They have none, but have the executable permission flag. The "chmod 755 yourFutureExecutableFilePath" will give execution and reading right to everybody and read, execute and write access to the owner of the file.
|