gmoccapy pins
- Mehmet_Ali
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 5
11 Aug 2024 17:37 #307485
by Mehmet_Ali
Replied by Mehmet_Ali on topic gmoccapy pins
The code written by Aciera works, but I'm having problems with permissions right now. I created a common folder between Windows and Linux. I can't give permission to this folder on the lşnux side, even though I used the chmod 777 command.
Please Log in or Create an account to join the conversation.
- Mehmet_Ali
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 5
12 Aug 2024 10:20 #307530
by Mehmet_Ali
Replied by Mehmet_Ali on topic gmoccapy pins
Aciera, I thank you very much again. The code you wrote works perfectly. I was only having problems because I was trying to do this in the shared folder. I added the following code to the python code and copied the file to another location. Everything is OK now.
import shutil
# Source path
source = "/home/User/Documents/file.txt"
# Destination path
destination = "/home/User/Documents/newfile/file.txt"
# Copy the content of
# source to destination
shutil.copyfile(source, destination)
import shutil
# Source path
source = "/home/User/Documents/file.txt"
# Destination path
destination = "/home/User/Documents/newfile/file.txt"
# Copy the content of
# source to destination
shutil.copyfile(source, destination)
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
- Mehmet_Ali
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 5
12 Aug 2024 11:01 #307537
by Mehmet_Ali
Replied by Mehmet_Ali on topic gmoccapy pins
We are doing a project by spending a lot of time, writing macros, making a plc program. ethercat.xml file,hal files, how can we protect them from our competitors.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds