How does the system know where one command ends and another begins?
No Answer is Posted For this Question
Be the First to Post Answer
What is ‘ps’ command for?
fork in unix ?
What is $0 bash?
what is exact definition of operating system?
what is the use of ls -l command & what is the information it gives about user ?
how to sort the content of the file based on numeric values
what is the use of "test" command in unix?
How to copy multiple files and directories into some other directory?
What is ctrl d?
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:
How do you grep a case insensitive?
What do chown command do?