CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   batch job under linux (https://www.cfd-online.com/Forums/siemens/53444-batch-job-under-linux.html)

Marcio August 15, 2003 08:21

batch job under linux
 
Hi all,

I 've generated the jobname.exe.batch file within prostar. But when I try to start it with nohup jobname.exe.batch & nothing happens. I work with bash as standard shell.

Any idea what could be wrong??

Thanks

Joern Beilke August 15, 2003 09:27

Re: batch job under linux
 
Remove the "timex" command in the batch file or replace it with "time".


Marcio August 15, 2003 09:46

Re: batch job under linux
 
I've tried this but it doesn't work. I use Suse 8.0 Linux with standard installation.

Joern Beilke August 15, 2003 10:41

Re: batch job under linux
 
what happens if you leave prostar and run the starlink from the command line, i've nerver started a job from prostar :)


steve August 16, 2003 18:00

Re: batch job under linux
 
Inside the script does it say ./star-casen ... or just star-casen ... ?

If its the second then it is possible that you might need to add "." to your path or edit the script maybe? I can't look at a typical script right now since I'm at home.

Stefan August 18, 2003 02:42

Re: batch job under linux
 
Maybe there's a "y" missing in the fourth line in your startup-script? Star-CD asks if it should re-compute the wall-distances, but the batch-script does not account for it.

Marcio August 18, 2003 04:27

Re: batch job under linux
 
The shell script generated with prostar is shown in the following lines:

#!bin/sh timex ./job.exe > job.exe log 2>&1 <<EOD job EOD

The starlink command executed directly from a shell generates the same script.

So any idea why this script doesn't run the case job under Suse 8.0 with bash as standard shell???

Thanks

Marcio August 18, 2003 04:28

Re: batch job under linux
 
#!bin/sh

timex ./job.exe > job.exe log 2>&1 <<EOD

job

EOD


Stefan August 18, 2003 04:30

Re: batch job under linux
 
My startscript looks like this: note the "y" in line four.

#!/bin/sh time ./star-foo.exe > star-foo.exe.log 2>&1 <<EOD foo y EOD

Marcio August 18, 2003 04:30

Re: batch job under linux
 
Sorry but it is not possible to post the script. Some symbols can't not be displayed

Joern Beilke August 18, 2003 05:48

Re: batch job under linux
 
The "timex" command does not exists in Linux. Thats why the script does not work. You just have to edit the script and remove the word "timex".

Another way would be to create a symbolically link or an alias.



All times are GMT -4. The time now is 04:57.