CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Permission Denied when Running a batch File

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2022, 14:32
Default Permission Denied when Running a batch File
  #1
New Member
 
Leonardo
Join Date: Jan 2022
Posts: 2
Rep Power: 0
leoporta98 is on a distinguished road
I have installed OpenFoam and run a few simulations without any problems.
Today I was trying to run a batch file but it tells me "Permission Denied".
It is executable (I've done chmod +x batch.sh).
A friend of mine has tested the batch file on his PC and it works.

I really don't understand why I shouldn't have the permission.

Thanks for any kind of help!
leoporta98 is offline   Reply With Quote

Old   January 7, 2022, 06:18
Default
  #2
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 76
Rep Power: 5
night-hawk is on a distinguished road
Quote:
Originally Posted by leoporta98 View Post
I have installed OpenFoam and run a few simulations without any problems.
Today I was trying to run a batch file but it tells me "Permission Denied".
It is executable (I've done chmod +x batch.sh).
A friend of mine has tested the batch file on his PC and it works.

I really don't understand why I shouldn't have the permission.

Thanks for any kind of help!
Can you post batch.sh here.
night-hawk is offline   Reply With Quote

Old   January 28, 2022, 05:09
Default Batch
  #3
New Member
 
Leonardo
Join Date: Jan 2022
Posts: 2
Rep Power: 0
leoporta98 is on a distinguished road
Thank you for the reply.
This is the batch. I've tried it on an other PC and it works. I also tried to run the commands directly from the terminal and everything works fine. I don't really understand why I have no permission.

Thanks again.
Attached Files
File Type: docx batch.docx (12.6 KB, 3 views)
File Type: zip batch.zip (550 Bytes, 2 views)
leoporta98 is offline   Reply With Quote

Old   January 29, 2022, 10:18
Default
  #4
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 76
Rep Power: 5
night-hawk is on a distinguished road
Probably the directory don't have write access. Can you try putting that folder/case to some where else in your pc.
night-hawk is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 22:03
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 23:53.