Ask Your Question

Revision history [back]

The -c needs to be a separate argument from the code:


            sprintf(args[0],"sage");
            sprintf(args[1],"-c");
            sprintf(args[2],"\"taskId=%d;taskArgs=[%s];load('%s');\"",taskNumber,arguments,inp_programFile);
            args[3] = NULL;