Vous avez une idee de ce qui cloche,
void* tp1(char *argu[])
{
pid_t child_pid1,child_pid2;
char* arg_list[] = {"tp1-SHW", /* Nom du programme. */
argu[1], /* Nom du fichier script*/
NULL };
/* Duplicate this process. */
child_pid1 = fork ();
if (child_pid1 != 0) /* This is the parent process. */
waitpid(child_pid1,NULL,0);
else {
/* Now execute PROGRAM, searching for it in the path. */
printf ("Execution de tp1-SHW...\n" );
execvp ("tp1-SHW", arg_list);
}