CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   An interesting point about permission denied error!!! help me (https://www.cfd-online.com/Forums/openfoam-solving/127822-interesting-point-about-permission-denied-error-help-me.html)

adambarfi December 22, 2013 06:57

An interesting point about permission denied error!!! help me
 
Hi everybody

an interesting thing happen for me is that I ran a case with buoyantBoussinesqSimpleFoam solver in parallel with the following code in my Allrun file:

Code:

#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=`getApplication`

#runApplication $application
runApplication decomposePar
runParallel $application 3
runApplication reconstructPar
streamFunction
foamToTecplot360

# ----------------------------------------------------------------- end-of-file

It successfully solved my problem.

then I copied this case to my external hard disk and deleted the case from first place. then I copied the case from my external hard disk to my system exactly where the previous case was in it.
I ran it again with ./Allrun but it said:

Code:

bash: ./Allrun: Permission denied
any body knows where is the problem? I'm so confused.

thanks
Mostafa

nimasam December 22, 2013 09:40

it has been converted to read-only file so you need to change it to execute file
Quote:

chmod +x Allrun

adambarfi December 22, 2013 10:50

dear Nima,

again thank you, It works
you help me for second time

have a nice year
Mostafa


All times are GMT -4. The time now is 11:08.