@vinuta-sKKXBQ
•
Oct 26, 2024
Oct 26, 2024
1.6K
UNIX COMMANDS
#include <stdio.h>
main()
{
char str[10];
int pid;
pid=fork();
if(!pid)
{
printf("child process");
printf("enter the command");
scanf("%s",&str);
system(str)
printf("finished with child ");
}
else
wait();
retrun(0);
} output:-
child process:-...