How do you grep a case insensitive?
No Answer is Posted For this Question
Be the First to Post Answer
How do you remove a crontab file?
How do you grep recursively?
which script will invoke first ,when /etc/init.d starts
How do you change file permissions and ownership in Unix?
what is the difference between pipe(|) and tee command..
what is the use of uniq commmand?
How to copy multiple files and directories into some other directory?
What does #!/ Bin sh do?
How do you stop a running process?
how to sort the content of the file based on numeric values
How to see unused port number in Solaris?
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: