What is the use of cut command in unix?
No Answer is Posted For this Question
Be the First to Post Answer
What do chmod, chown, chgrp commands do?
How do you list the files in an UNIX directory while also showing hidden files?
How to redirect standard error to a file?
What does the “echo” command do?
How does the user view the contents of a text file in UNIX?
what is the significance of "su" command?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
Which command will print your home directory on screen?
How to get the last ten lines of a file using awk utility?
what is Online(STM) and offline diagnostics in HP-UX?
How to know a process is a zombie or orphan process?
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: