Who wrote grep?
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:
solaris Run level?
What are the dos commands?
What is command substitution?
What is merge command in unix?
What is the pipe command?
what does a process mean?
How can you change the owner or group of a file?
what is the difference between pipe(|) and tee command..
how many types of file in unix?
34 Answers MNC, TCS,
Does cp command overwrite files?
What is mtime in find command?