diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -26,9 +26,16 @@ int main(int argc, char *argv[]) genericfunc(); execlisten(); - // command = get_task(); //asks server for next frame and part to be rendered + int frame_to_render; + frame_to_render = 10; // temporary, the number 10 will be replaced with a function call - // run command + char name[25]; // declares a variable to hold the file name + name = "file_name"; // file_name will be replaced with a function call + + char string[100]; + sprintf(string, "blender.exe -b %s.blend -o //tmp/frame -f %d -F JPEG -x 1", name, frame_to_render); + + system(string); return 0; }