|
[Sponsors] |
December 23, 2016, 17:41 |
Batch and nohup
|
#1 |
New Member
Marco Bianchini
Join Date: Dec 2016
Posts: 8
Rep Power: 9 |
Hi everyone,
I'm trying to volume Mesh my project from remote using terminal comand line. I am trying to do so from remote, but I want to make it start and then disconnect, but the terminal skips on "nohup" and "&"( not sure on the last one). Where am I mistaken in my comand line? Code:
nohup starccm+ -batch file.java file.sim > mesh.log & |
|
December 27, 2016, 11:01 |
|
#2 |
New Member
DL
Join Date: Jun 2016
Posts: 18
Rep Power: 9 |
Not sure which distro you are using or the version of bash, but let me give this a try anyways.
You seem to be missing the disown command. I generically ran this sequence to verify the job kept running after logging out and back in again and verifying the PID (in this case 64279) was still present in top (for you: top -u $USER). This should work with your batch option/argument pairs as well. [me@myhostname ~]$ nohup starccm+ -server -rsh ssh -new test.sim > testlog.log 2>&1 & [1] 64279 [me@myhostname ~]$ disown This use of disown marks the job such the SIGHUP signal is not sent to that job when the terminal closes. The 2>&1 adds any error messages to the output log. Hope the helps! |
|
December 29, 2016, 10:18 |
|
#3 |
New Member
Marco Bianchini
Join Date: Dec 2016
Posts: 8
Rep Power: 9 |
Thank you very much, it worked.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch Run | Akin | CFX | 11 | June 24, 2013 20:07 |
Batch job | M. Malik | Main CFD Forum | 6 | February 12, 2008 09:49 |
stopping a fluent job in nohup | Mark | FLUENT | 2 | June 2, 2005 09:51 |
batch job under linux | Marcio | Siemens | 10 | August 18, 2003 05:48 |