How does one process we can start an executable file? How to
get the PID process, which we started?

Answers were Sorted based on User's Feedback



How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / vimal

ps -ef|grep username


gives the process started by the user.

Is This Answer Correct ?    6 Yes 1 No

How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / akash

We can use

ps -u yourusername

this will list all the processes that are started by you.

Is This Answer Correct ?    3 Yes 3 No

How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / hari

to start a process
chkconfig nttpd on
to restart daemon
chkconfig nttpd restart

find the pid of daemon

pidof -s processname
pidof -s nttpd
pidof -s cupsd
pidof -s httpd

Please check it

Is This Answer Correct ?    0 Yes 0 No

How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / 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

How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / reddy

ps -ef|grep java

excute the above comand.......

Is This Answer Correct ?    6 Yes 7 No

How does one process we can start an executable file? How to get the PID process, which we started?..

Answer / hari

ps -aux | grep 'process-name'

Pls check it is a guess
Hari

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

distinguish between interrupts and exceptions?

2 Answers   Infosys, Wipro,


How do I search a whole word in vim?

0 Answers  


fork in unix ?

4 Answers   BFL,


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


What is the difference between grep and grep?

0 Answers  






Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?

10 Answers   Infosys,


what is the command to get help on a UNIX terminal?

5 Answers  


what is virtual machine?

2 Answers   Infosys,


What is the comma to show the space allocation of files?

0 Answers  


what is the use of "test" command in unix?

4 Answers  


what are processor execution levels and priorities?

2 Answers   Infosys,


distinguish between physical addresses and logical address?

3 Answers   Infosys,


Categories