Jack Lobingier wrote:
> 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 jack@192.168.1.103 /home/jack/pi_data'
> call (cmd.split ())
My guess is it is not finding the id_rsa file because the script isn't
picking up the current working directory. Try with the full path to the
file. (and the full path to scp too maybe)
Theo
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|