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


Please Help Members By Posting Answers For Below Questions

What's a command word?

577


What is the difference between cat and more command?

617


What is the nmap command?

565


Why is shebang used?

587


What happens when we execute a unix command?

587






How to find $ai_serual resolved path by using unix

1016


What do chmod command do?

592


How does pipe () work?

581


What does grep v do?

549


What does awk stand for?

596


What do know about tee command and its usage?

578


Who wrote grep?

570


Why is grep called grep?

762


What is used to type command?

530


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

625