Execute your jobs without a hurdle
Here is a tip that will help you to keep executing jobs even after exiting the shell. You can use the ‘disown’ command to run a job after you’ve logged out. It releases all the running jobs from ownership. You can also use the ‘nohup’ command, but for that, you have to specify in advance as shown below:
$ nohup nmap -vv -sP 10.13.37.1/24 &
You can now log out from the terminal. Your command will keep executing and the output will be in nohup.out
The same can also be achieved by using ‘disown’ as shown below:
$ nmap -vv -sP 10.13.37.1/24 -oN VizOutput.txt
Now press…
Ctrl+Z
This will suspend the running job. After suspending the job, run the following command:
$ disown
Now you can log out from the terminal without killing the job.