Skip to content
Snippets Groups Projects
Commit 020b98d0 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[PYNQ] bugfix: use specified password for remote exec

parent ff1f7b3d
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,15 @@ def remote_exec(model, execution_context):
process_compile.communicate()
cmd = (
"sshpass -p {} ssh {}@{} "
'"cd {}/{}; echo "xilinx" | sudo -S python3.6 driver.py"'
).format(pynq_password, pynq_username, pynq_ip, pynq_target_dir, deployment_folder)
"sshpass -p {} ssh {}@{} " '"cd {}/{}; echo "{}" | sudo -S python3.6 driver.py"'
).format(
pynq_password,
pynq_username,
pynq_ip,
pynq_target_dir,
deployment_folder,
pynq_password,
)
bash_command = ["/bin/bash", "-c", cmd]
process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE)
process_compile.communicate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment