Stefan Huelswitt wrote: > Ville Skytt? suggested to change the line from > > execle("/bin/sh","sh","-c",cmd,0,environ); > > to > > execle("/bin/sh","sh","-c",cmd,NULL,environ); From execle man page: The list of arguments must be terminated by a NULL pointer, and, since these are variadic functions, this pointer must be cast (char *) NULL. Based on that, correct would be: execle("/bin/sh","sh","-c",cmd,(char*)NULL,environ); Cheers, Udo