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 |
Name the unix command to find how many days the server has been up.
why metadb requires a seperate slice to create Solaris volume manager
What is the difference between udp and tcp?
what is the command to print last 8 lines of any text file.
What is command substitution?
what are the different commands used to create files?
Which mode is used for allowing file write,read and append mode?
in UNIX,How to copy file into directory?
How do you move a process which is running background to foreground?
If we want to see first 35 lines of a file which command we have to use?
How to redirect standard error to a file?
How to setup sudo, only can use for particular date & time only ( for solaris10 )