How does one process we can start an executable file? How to
get the PID process, which we started?
Answer Posted / sangeetha
We can start a new process from an existing process by
calling the function system("new process &"). The & sign
indicates the new process will run in background. Then
after this we can use the "ps" command to get the PID of
the new process.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
How do I open a port?
Which command will print your home directory on screen?
Which command is used to restrict incoming messages?
Why is grep called grep?
What is unix command line?
What is a bash command?
How to use grep command to list find the records of a file containing 10 different strings?
Name the various commands that are used for the user information in unix.
What does the command '$ls | wc –l > file1' do?
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
What do chgrp command do?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Which command is used to copy files?
What are the unix commands?