set chmod +x before running hamlib

This commit is contained in:
DJ2LS 2021-09-05 10:32:52 +02:00 committed by GitHub
parent fffaf196b4
commit 957a204c14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,9 @@ class CMDTCPRequestHandler(socketserver.BaseRequestHandler):
dtr_state = "NONE"
if sys.platform == "linux":
# we need to make sure we have execution privileges
p = subprocess.Popen("chmod +x ./hamlib/linux/rigctld", shell=True)
#run hamlib rigctld network service
command = "exec ./hamlib/linux/rigctld -r " + str(deviceport) + \
" -s "+ str(serialspeed) + \
" -P "+ str(ptt) + \