|
[Sponsors] |
September 12, 2019, 14:12 |
Unable to run allrun scripts
|
#1 |
New Member
Sujay
Join Date: Oct 2018
Posts: 12
Rep Power: 8 |
I have some allrun scripts that work completely fine on windows subsystem for linux.
I'm however unable to run them on a virtual machine running on linux. some info: the main allrun script calls other allrun scripts in subdriectories. The allrun scripts were copied and edited from a random tutorial directory. Both - the windows subsystem for linux as well as the virtual machine are running the same version: OF1906 I have tried the following: chmod -R a+rX * on each directory with the allrun scripts. now I get the message : Can't open /bin/tools/RunFunctions However, if I run a copy of an existing tutorial in the same directory, it runs. Any suggestions about what might be going wrong and how it can be fixed? |
|
September 13, 2019, 08:52 |
|
#2 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 |
...maybe can be \ instead of / ?
|
|
September 13, 2019, 08:56 |
|
#3 |
New Member
Sujay
Join Date: Oct 2018
Posts: 12
Rep Power: 8 |
I don't think so.
Cant see any difference in the content of the script that is working and the ones that are not. |
|
September 13, 2019, 12:33 |
|
#4 |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
open a terminal and type:
simpleFoam -help If the system is giving such an output (must not be identical), then that means that openfoam is installed correctly and the problem is in the script... if not then type: gedit ~/.bashrc at the ende of the file you opened type: source /opt/openfoam7/etc/bashrc then save and restart the terminal and retest. Regards Peter |
|
January 25, 2020, 17:49 |
|
#5 |
New Member
Sverige
Join Date: May 2016
Posts: 2
Rep Power: 0 |
Maybe it's the line termination.
Test by writing file "filename" ex file Allrun and you will see "filename": POSIX shell script, ASCII text executable, with CRLF line terminators linux doesn't use CRLF (windows) of CR (mac), you can remove them by sed -i 's/\r$//g' "filename" ex sed -i 's/\r$//g' Allrun |
|
Tags |
allrun script, bash on ubuntu on windows, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scripts to run fluent in Linux cluster via windows | sanjaykummar2810 | FLUENT | 1 | September 19, 2018 17:23 |
[OpenFOAM] Unable to run paraview | vaibhavkhare | ParaView | 1 | July 23, 2018 15:44 |
Unable to run the case parallel using foam-extend in the cluster | farahaqilah | OpenFOAM | 0 | July 28, 2016 00:49 |
[snappyHexMesh] Able to run snappyHexMesh in parallel on local machine but unable to run on linux clu | abhinav2601 | OpenFOAM Meshing & Mesh Conversion | 1 | January 26, 2015 06:42 |
[OpenFOAM] Unable to run pvserver in parallel | md_lieber | ParaView | 3 | November 18, 2010 08:12 |