What is sed awk grep?
No Answer is Posted For this Question
Be the First to Post Answer
what is exact definition of operating system?
How we will execute previous command in vi editor?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
what is the difference between relative path and absolute path?
What is in grep command?
Which command should you use to find the remaining disk space in unix server?
What is the functions of zambie process?
What are filter commands in unix?
what is the command to find out the difference between files and folders?
How do you copy a directory with many files and folders into another directory?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:
What's a command word?