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

In Unix file permissions what does the second field denotes?

3 Answers  


Explain command to display different lines that are found when compare two files?

0 Answers  


how to check a file system type

7 Answers   Wipro,


How does a user get the current date, time in UNIX?

6 Answers   IBM,


what is exact definition of operating system?

13 Answers  






what is the difference between commmands cmp and diff?

9 Answers   iNautix,


Describe the zip/unzip command using gzip.

0 Answers  


What is command statement?

0 Answers  


What is the command to find maximum memory taking process on the server?

0 Answers  


Write a command to find all of the files which have been accessed within the last 30 days.

5 Answers   Google, IBM, Satyam,


When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?

3 Answers  


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

0 Answers  


Categories