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

how to sort the content of the file based on numeric values

1517


What is awk good for?

798


What is merge command in unix?

1147


What is the first character of the output in ls l command?

879


What is the functionality of a top command?

837


What is the nmap command?

812


What is the comma to display different lines that are found when compare two files?

804


What does grep v do?

768


How to find $ai_serual resolved path by using unix

1270


Which unix command to make a new directory?

811


How to display no of records in oracle using unix command?

814


What are grep patterns?

777


What is the function of grep command in unix?

805


What is the command to view process running?

812


What is awk used for?

836