Рет қаралды 3,534
Nohup - Hangup Immune Commands - Commands for Linux
In this video we cover nohup and look at how we can use it to create hangup immune background jobs that you can still send data into.
As nohup is part of the GNU coreutils, if you have the ls command you will have nohup.
Lets say that you want to run a command or script on a remote machine over SSH. If for any reason you loose connection to that machine, whatever you are running will terminate.
You might be thinking, well I can just use a multiplexer like screen or tmux, and you would be correct. Either of these will solve this issue. The only problem is tmux and screen might not be installed and you may not have the ability to install one of them. This is where nohup comes in. All you need to do is prefix your command, shell script or pipeline with nohup, run it as a background job with ampersand "&" and you are done.
Subscribe: www.youtube.co...
Blog: www.linuxleech.com
Twitter: / linuxleech
Facebook: / linuxleech
Google+: www.gplus.to/li...