Problems with scp script in Python

2017-02-13 Thread jhlobin
I have an SCP script that auto completes just fine from the terminal window in 
Pi.  When I use either subprocess or os to try and have it run under Python it 
does not do the file transfer from Pi to my Ubuntu machine.  What am I doing 
wrong?  Here is the script: 

from subprocess import call 
cmd='scp -i id_rsa sample.txt [email protected] /home/jack/pi_data' 
call (cmd.split ()) 

Thank you 

-- 
https://mail.python.org/mailman/listinfo/python-list


Problems with scp script in Python

2017-02-13 Thread jhlobin
Sorry, I did use a colon after the remote machine address, mistyped above.  It 
does work ok under the terminal window.
-- 
https://mail.python.org/mailman/listinfo/python-list