How do you execute a UNIX command in the background?

Answer Posted / santosh

The answer is nohup <Command/Script>

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

755


What is the nmap command?

575


Which command can you use to find the currently running process in unix server?

581


How do you grep recursively?

548


What does touch command do in unix?

719






Which command is used to kill the last background job?

769


How does pipe () work?

587


Explain ‘system calls’ with respect to unix commands?

598


How do I run a whois command?

594


How to display no of records in oracle using unix command?

585


What is pipe command in unix?

663


What is grep command in unix with examples?

604


What are the commands in UNIX to list the files in a Directory?

610


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:

1752


What is “chmod” command?

560