Praktikum 07 Aufgaben 1,2 ausgeführt.
This commit is contained in:
parent
6c94df5e4d
commit
6d147b1b65
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue