c language - Submit a qsub job programmatically

189 views Asked by At

I want to programmatically submit a qsub job on a Linux in C. This is the code I'm using and it is not working.

char command1[50];
chdir("/home/salah/proteins/1L2Y/try2_4changes/_1/");
strcpy(command1, "qsub submit.sh");
system(command1);

When I change the command (let's say to ./test.sh), it works just fine and does everything. So I think the problem is in the qsub part.

0

There are 0 answers