CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   how to run a starjob in background? (https://www.cfd-online.com/Forums/siemens/52685-how-run-starjob-background.html)

Jiaying Xu September 20, 2001 07:01

how to run a starjob in background?
 
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.

Stephan Meyer September 20, 2001 07:52

Re: how to run a starjob in background?
 
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

Jiaying Xu September 20, 2001 09:54

Re: how to run a starjob in background?
 
Works as you said. Many thanks, Stephan. Jiaying

Jiaying Xu September 20, 2001 10:17

Re: how to run a starjob in background?
 
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


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