try just rpitx

Updated the command query to remove 'su -c' and simplify the execution.
master-fsk-cw
Alan Johnston 2 weeks ago committed by GitHub
parent 4bc47a9503
commit b0643d1660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -547,8 +547,9 @@ if __name__ == "__main__":
#system("timeout 3 sudo /home/pi/rpitx/rpitx -i- -m RF -f " + tx + "e3")
# system("su -c 'timeout 3 sudo /home/pi/rpitx/rpitx -i- -m RF -f 434.9e3' pi")
# query = ["su", "-c", "'timeout", "3", "sudo", "/home/pi/rpitx/rpitx", "-i-", "-m", "RF", "-f", "434.9e3'", "pi"]
query = ["su", "-c", "'timeout", "3", "sudo", "/home/pi/rpitx/rpitx", "-i-", "-m", "RF", "-f", "434.9e3'", "pi"]
query = ["sudo", "/home/pi/rpitx/rpitx", "-i-", "-m", "RF", "-f", "434.9e3'", "pi"]
try:
result = subprocess.run(query, capture_output=True, text=True, check=True)
print(f"Command run was: {query}")

Loading…
Cancel
Save

Powered by TurnKey Linux.