What is unix command?
No Answer is Posted For this Question
Be the First to Post Answer
what is virtual machine?
How do you remove a crontab file?
How do I delete files from command prompt?
In vi editor how do you execute unix commands?
solaris Run level?
which script will invoke first ,when /etc/init.d starts
What is awk used for?
Will rm -r* removes hidden files?
How do you grep a case insensitive?
What are the dos commands?
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:
Differentiate cat command from more command.