Thread
:
execute an exe on the server
View Single Post
Dec 29th, 2006, 10:58 PM
#
6
niteice
Programmer
Join Date: Aug 2005
Posts: 98
Rep Power:
4
exec() returns whatever the program prints on stdout. So if your program is:
(
Toggle Plain Text
)
#include <stdio.h> int main(int argc, char **argv) { fputs("Hello, world!\n", stdout); }
#include <stdio.h> int main(int argc, char **argv) { fputs("Hello, world!\n", stdout); }
The return value of exec() is "Hello, world!\n".
niteice
View Public Profile
Find More Posts by niteice