What is grep in bash?
No Answer is Posted For this Question
Be the First to Post Answer
what is the use of "grep" command?
What is the difference between udp and tcp?
What do know about tee command?
How do you copy a directory with many files and folders into another directory?
How would you find the size of a file or directory?
What is a Unix signal, and how do you handle them?
How do I use grep to search for a file?
What are awk commands?
What are the unix commands?
How to identify whether a file is normal file or directory?
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
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: