CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Batch and nohup

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2016, 17:41
Default Batch and nohup
  #1
New Member
 
Marco Bianchini
Join Date: Dec 2016
Posts: 8
Rep Power: 9
marco.bianchini is on a distinguished road
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 &
thank you in advance.
marco.bianchini is offline   Reply With Quote

Old   December 27, 2016, 11:01
Default
  #2
New Member
 
DL
Join Date: Jun 2016
Posts: 18
Rep Power: 9
underrelaxed is on a distinguished road
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!
underrelaxed is offline   Reply With Quote

Old   December 29, 2016, 10:18
Default
  #3
New Member
 
Marco Bianchini
Join Date: Dec 2016
Posts: 8
Rep Power: 9
marco.bianchini is on a distinguished road
Thank you very much, it worked.
marco.bianchini is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:17.