I'm trying to get a script to run on Bash to transfer files from my local machine to a remote computer on my network. The bash command is :
scp \local\path\ user@remoteip:\path\to\copy\onremote
This has worked alright so far, so I thought I'd automate it using a python script. This is what I came up with:
import subprocess
direct = input("Enter path to directory: ")
send = "scp " + direct + " user@remoteip:\path\to\copy\onremote"
subprocess.Popen(send)
For some reason, It's not working, any ideas?