CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

how to run a starjob in background?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 20, 2001, 07: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, 07: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, 09: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, 10: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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Background colour JSM FLUENT 4 September 13, 2007 05: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 22:41
background color Nurul Murad FLUENT 2 August 30, 2001 01:45


All times are GMT -4. The time now is 18:55.