Tuesday, April 3, 2012

nohup and background an already running process

So I have found myself in this situation more than once. I have a long running process running in a foreground, and i need to disconnect but dont want to loose the work already done by the process. The process is cpu intensive and thus is not responding to usual control+z. Here are steps you can take to force it into background and nohup it, making it possible to safely close the terminal window

open a new terminal window, find the process id of the long running process and do this

; suspend the process

kill -20

; or you can also use this

kill -stop

this should cause the process to be suspended in the original process. now you can background it. backgrounding it alone will not cause it continue running if the window is closed. you will need to disown it.

bg disown -h

the process is still suspended, so now resume it

; resume the process

kill -18

; or you can also use this

kill -cont

5 comments:

  1. Once again, when kids are included, the emotions are even increased along with uncooked, therefore knowing a person who is goal may help ensure your along with your children's desires are being dished up. Additionally it is helpful to have somebody to help you view the procedure and just how it works and also will keep an individual grounded in the process. Efficiency is yet another reason to work with a divorce attorney.
    divorce attorney
    No doubt that this legal consultant could have your own interest, but he or she will not create illogical choices based on thoughts. They will somewhat bottom judgements after good settlement and legal procedures. If an individual is certainly going by way of a divorce along with kids, these thoughts are even greater, obtaining one other reason to hire children law specialist. Some. Efficient- If someone is trying to accomplish their very own divorce, it should take a great deal of research, commitment to be aware of the particular legal submitting process, terms and operations.

    ReplyDelete
  2. http://www.itconexus.nl/groups/19
    http://ladiesexclusively.com/groups/71
    http://ylike.eu/blogs/post/936
    http://www.comured.com/blogs/post/3192
    http://hardy.biz.tm/spain/photo/viewlist/latest
    https://newdrug.ru/blogs/post/13
    http://www.v8channel.co.nz/oxwall/groups/39
    http://tfcnetwork.nl/social/groups/55
    http://www.fotowand-community.com/blogs/post/37
    http://www.rvshopper.biz/groups/create
    http://satkafoto.ru/event/26
    http://www.anarchycu.com/groups/55
    http://lidko.cz/blogs/post/2485
    http://code254.com/
    http://www.pirate.fluctis.com/piratenet/blogs/post/8
    http://hersimu.com/komunitasbahagia/groups/75
    http://leden.fanfaresintservatius.nl/photo/useralbums/admin
    https://www.theopenretreat.com/blogs/post/8844
    http://destinosexotico.com/blogs/post/858
    http://chopatti.com/groups/26

    ReplyDelete
  3. http://cash.ravo.jp/??????cat=?????????
    http://cdalosbucaros.com/component/k2/itemlist/user/2711
    http://cellmed.co.zw/?option=com_k2&view=itemlist&task=user&id=240858
    http://center-univita.ru/top/index.php?a=stats&u=monavanmeter1
    http://centromedicopeninsular.com/index.php/component/k2/itemlist/user/178728
    http://ceosuzano.com.br/component/k2/itemlist/user/28647
    http://cerrajeriasaavedra.es/component/k2/itemlist/user/290740
    http://certifiedassistant.com/aishwarya-rai-family-photos/
    http://cetprocoede.com/?option=com_k2&view=itemlist&task=user&id=3116
    http://cf33.free.fr/cf33/nouveautes.php

    ReplyDelete
  4. http://www.radioclub.com.ar/component/k2/itemlist/user/41790
    http://www.rakovicfreres.fr/?option=com_k2&view=itemlist&task=user&id=192323
    http://www.rcmombasanorthcoast.com/index.php/component/k2/itemlist/user/957
    http://www.rebi-reinigungstechnik.de/?option=com_k2&view=itemlist&task=user&id=918
    http://www.recyclingsurplus.com/?option=com_k2&view=itemlist&task=user&id=1144189
    http://www.redubica.com/index.php/component/k2/itemlist/user/334553
    http://www.refugioneptunos.com/?option=com_k2&view=itemlist&task=user&id=393245
    http://www.registrodelapropiedad.mx/index.php/component/k2/itemlist/user/187109
    http://www.remoin.com/index.php/en/component/k2/itemlist/user/702822
    http://www.reydreyes.com/?option=com_k2&view=itemlist&task=user&id=278113

    ReplyDelete
  5. http://suryatama-lg.com/?option=com_k2&view=itemlist&task=user&id=1603
    http://synapse-africa.com/index.php/component/k2/itemlist/user/659428
    http://szegelykovek.hu/?option=com_k2&view=itemlist&task=user&id=8679
    http://taemanagement.nl/index.php/component/k2/itemlist/user/293583
    http://tamaygroup.com/index.php/component/k2/itemlist/user/489712
    http://tangerangambulance.com/index.php/component/k2/itemlist/user/24255
    http://tapestarragona.esy.es/component/k2/itemlist/user/7942
    http://tbytes.com.br/index.php/component/k2/itemlist/user/21632
    http://tcruhpolding.de/index.php/component/k2/itemlist/user/210248
    http://teamcyberspeed.com/?option=com_k2&view=itemlist&task=user&id=73319

    ReplyDelete