How does one process we can start an executable file? How to
get the PID process, which we started?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do chmod command do?

685


What is ‘ps’ command for?

723


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

884


How do I delete files from command prompt?

663


Are you in or at the office?

710






What is the use of sed command in unix?

692


Can you explain a little bit about command substitution?

712


Who wrote grep?

660


Write a command to display a file’s contents in various formats?

715


What does find command return in unix?

695


What is $0 bash?

749


What are some command words?

672


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1851


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1070


What are the general commands in using unix os for a beginner?

683