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

how to run a starjob in background?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2001, 08:01
Default how to run a starjob in background?
  #1
Jiaying Xu
Guest
 
Posts: n/a
Hi there,

I use a local pc to logon a unix super computer there installed the StarCD.

My question is whether I can run the starjob on the background of the super computer. Then I logouted my machine. After several hours, I login my machine to take a look at the computation.

A simple logout just kills the process and terminates the computation, because the starjob keeps writing the iteration residual and monitoring values back to my screen.

Is it possible I can turn off the screen writing of a starjob or redirect it to a disk file?

Thanks very much.

Jiaying

Note: I can run starjob in background by issueing a unix command with a surfix & charecter, but this is not my point. My intention is to disconnect my local pc from the unix machine but keep the starjob running on the unix machine.
  Reply With Quote

Old   September 20, 2001, 08:52
Default Re: how to run a starjob in background?
  #2
Stephan Meyer
Guest
 
Posts: n/a
Hello, Jiaying,

you can use the unix command NOHUP to keep jobs running after disconnecting from the remote machine. Simply start

nohup < your shell script > &

The shell script is used to issue the case name to the star executable. The executable is created with the command STARLINK. An example shell script looks like this:

#!/bin/sh

./star.exe << EOD

star

EOD

with "star.exe" the name of the executable and "star" the casename. The program output will be directed to a file called NOHUP.OUT.

Hope this helps.

Stephan
  Reply With Quote

Old   September 20, 2001, 10:54
Default Re: how to run a starjob in background?
  #3
Jiaying Xu
Guest
 
Posts: n/a
Works as you said. Many thanks, Stephan. Jiaying
  Reply With Quote

Old   September 20, 2001, 11:17
Default Re: how to run a starjob in background?
  #4
Jiaying Xu
Guest
 
Posts: n/a
I found that "star_inter.sh > outputfile &" also works well, especially replacing outputfile with /dev/null will redirect screen writing to NULL. This is useful since a .run file also records iteration history. Regards. Jiaying
  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
Background colour JSM FLUENT 4 September 13, 2007 06:30
How to run CFX on the background? David CFX 1 January 19, 2004 17:24
how to run fluent 5.4 in background l.g.patil FLUENT 5 February 1, 2002 13:06
How to run Fluent on the background Jie FLUENT 9 September 7, 2001 23:41
background color Nurul Murad FLUENT 2 August 30, 2001 02:45


All times are GMT -4. The time now is 14:51.