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

their is a file1,file2 and i want to append file1 data to file2?

9 Answers   IBM,


What is sed awk grep?

0 Answers  


What does mkdir up2date; touch outdated up2date do?

2 Answers  


What is pid?

4 Answers  


what is the significance of "su" command?

3 Answers  






What is the use of touch command in there?

1 Answers   Accenture,


Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?

5 Answers  


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


What do chmod, chown, chgrp commands do?

0 Answers  


What is an Environment Variable?

4 Answers   CTS,


How do you find which version and name of unix you are using at the command prompt?

7 Answers  


what is the shell for dos,nt operating systems?

1 Answers  


Categories