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

What are the unix commands?

0 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


What is command substitution?

0 Answers  


what does the 'tee' command do?

4 Answers  


What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,






How do you find path of a directory? Give its syntax.

7 Answers  


Is command prompt unix?

0 Answers  


How to get the last ten lines of a file using awk utility?

1 Answers   Infosys,


How to add content of one file into another file at the beginning

12 Answers  


Which Command is Used for temprary switch User?

5 Answers   BitWise, IBM,


What UNIX command will control the default file permissions when files are created?

4 Answers  


What is the basic difference between unix and windows operating systems?

43 Answers   Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,


Categories