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
How do I delete files from command prompt?
What is awk good for?
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)?
What is in grep command?
What does the metacharacter mean?
How do I search a whole word in vim?
Enumerate some of the most commonly used network commands in unix?
Can you explain a little bit about command substitution?
What is grep r?
Who invented grep?
How do I search for a file in unix command?
What is the comma to show the space allocation of files?
Who command in unix?
What does the “echo” command do?
Explain mount and unmount command.