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
Answer / vimal
ps -ef|grep username
gives the process started by the user.
Is This Answer Correct ? | 6 Yes | 1 No |
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 |
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 |
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 |
Answer / hari
ps -aux | grep 'process-name'
Pls check it is a guess
Hari
Is This Answer Correct ? | 0 Yes | 1 No |
distinguish between interrupts and exceptions?
How do I search a whole word in vim?
fork in unix ?
What is the output of : $ ps-e $ ps-a commands
What is the difference between grep and grep?
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?
what is the command to get help on a UNIX terminal?
what is virtual machine?
What is the comma to show the space allocation of files?
what is the use of "test" command in unix?
what are processor execution levels and priorities?
distinguish between physical addresses and logical address?