|
[Sponsors] |
March 26, 2008, 03:39 |
Dear friends:
i can not un
|
#1 |
Senior Member
|
Dear friends:
i can not understand what is the meaning of "nohup nice -n 19 " when i run the case, woudl sombody give me some information regards |
|
March 26, 2008, 05:02 |
* man nohup
* man nice
both
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
* man nohup
* man nice both give fairly good information. As an alternative, you can also try * info nohup * info nice |
|
March 26, 2008, 05:46 |
1) When you run something from
|
#3 |
New Member
Luca Liberti
Join Date: Mar 2009
Location: Rome, Italy
Posts: 22
Rep Power: 17 |
1) When you run something from a shell without any specific option it will run as a foreground task. The shell will be locked until the process ends.
To prevent this you can issue the command as myCommand & this way the process will be forked from the shell leaving the shell free. 2) Using the ampersand & the process will still be attached to the shell meaning that it will die when the shell dies. This is particularly relevant when running long jobs on remote machines: you want to keep the process running even when you are logged out. The nohup puts the process in background i.e. it won't die with the shell. The nice command with an appropriate option change s the priority of a job leaving leaving more or less horsepower to other processes running on the machine. FYI http://www.code.ucsd.edu/local/HelpDocs/NohupHelp.html Regards Luca |
|
April 29, 2010, 10:48 |
|
#4 |
Senior Member
Join Date: Dec 2009
Posts: 112
Rep Power: 17 |
Hey There,
the nohup command works fine for me running a single application e.g. nohup solvername But trying to use it in parallel was not successful so far. If I use the command: nohup mpirun -np 2 solvername -parallel or nohup mpirun -np 2 solvername -parallel >log the job dies once i close the terminal/log off. So how do I have to modify the command to make it work in parallel? regards! |
|
April 12, 2011, 03:28 |
|
#5 | |
New Member
Mark
Join Date: Jan 2011
Posts: 2
Rep Power: 0 |
Quote:
I have the same problem right now, i can not keep the job alive when I'm running in parallel with nohup. Did you solve this problem? Thanks a lot, Mark |
||
April 18, 2011, 05:55 |
|
#6 |
Senior Member
Join Date: Dec 2009
Posts: 112
Rep Power: 17 |
||
July 16, 2014, 07:06 |
|
#7 |
New Member
Jan N. Wieczorek
Join Date: Jul 2014
Posts: 14
Rep Power: 12 |
Also works, if you pause the process with "CTRL+Z" and then disown it by just typing
disown -h This gives the process(es) over to the shell and they won't be closed if you close your terminal window. Then simply send it to background by doing bg %1 (where %1 stands for your process which you paused recently) and you can close the terminal while the processes keep running! |
|
May 27, 2017, 09:12 |
|
#8 | |
New Member
elham usefi
Join Date: Apr 2016
Location: tabriz,iran
Posts: 13
Rep Power: 10 |
Quote:
u saved me tanxxxxxxxx a hundred |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wow.. nice to be the first one here.. :) | Sean Lin | FLOW-3D | 2 | September 30, 2008 18:46 |
Nice Challenge | Bilir | Main CFD Forum | 6 | September 8, 2006 13:30 |
stopping a fluent job in nohup | Mark | FLUENT | 2 | June 2, 2005 10:51 |