Praktikum 07 Aufgaben 1,2 ausgeführt.

This commit is contained in:
Didnt Read Readme 2022-04-19 14:15:34 +02:00
parent 6c94df5e4d
commit 6d147b1b65
6 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ int main(void) {
case 0: case 0:
i++; i++;
sprintf(str, "%d",i); // convert integer i to string str sprintf(str, "%d",i); // convert integer i to string str
retval = execl("./ChildProcA2.r", "ChildProcA2.e", str, NULL);
retval = execl("./ChildProcA2.e", "ChildProcA2.e", str, NULL); retval = execl("./ChildProcA2.e", "ChildProcA2.e", str, NULL);
if (retval < 0) perror("\nexecl not successful"); if (retval < 0) perror("\nexecl not successful");
break; break;
@ -48,6 +49,7 @@ int main(void) {
break; break;
} }
printf("\n. . . . . und wer bin ich ?\n\n"); printf("\n. . . . . und wer bin ich ?\n\n");
printf("Status: %d\n", status);
exit(0); exit(0);
} }