Portal Home > Knowledgebase > Articles Database > using bg command and disown -h question
using bg command and disown -h question
Posted by sharmaine1111, 12-30-2009, 11:41 PM |
My internet here at home is crappy and during peak hours I usually gets disconnected
This is not favorable because if I am installing perl and I got disconnected, it will mess up the server
I heard I can use bg and disown -h, so what I did was to hit CTRL-Z, type commands bg then disown -h
my question is if Im disconnected from the server and I want to log back in, can i still see the jobs by typing jobs command?
Is there a way to be able to run processes in the background and will still continue even if i got disconnected and when i log back in I can see if the job has finished or still executing?
|
Posted by madaboutlinux, 12-31-2009, 04:52 AM |
Why don't you use 'screen'?
Once install, execute screen, you will be taken to a new window within itself. Execute your command and come out of screen. Even if your session gets disconnected, the command will keep on running under the 'screen' session. You can take over the screen session using the screen -r command.
|
Posted by sharmaine1111, 12-31-2009, 04:59 AM |
I am not very familiar with screen. Ive tried using it before with no luck.
Do you have a good tutorial I can follow for screen?
|
Posted by madaboutlinux, 12-31-2009, 05:27 AM |
Google will provide you with a quite a handsome of links on 'screen' tutorial. Here is one:
http://news.softpedia.com/news/GNU-S...al-44274.shtml
|
Add to Favourites Print this Article
Also Read