I would like to write a script to automate a task which I do manually everyday. This task requires me to download some files from a UNIX server (Solaris) to my desktop (Windows XP) using WinSCP. Is there any way to copy/move the files from a path in the UNIX server to a path in my Windows XP PC using Python or shell script?
2 Answers
If you are planning to use python, then you can use paramiko library. It has sftp support. Once you have the file on windows, use shutils library to move it to your path on windows
3 Comments
fecub
yeah paramiko is nice! I recommend you also
user1758952
Thanks for your suggestion. May I know is there anything need to be configured in the client PC (like installing Cygwin)?
Ranjith Ramachandra
I guess you will need to install python. Then install
setuptools for python and then do an easy_install parammiko. Let me know if you need more help. Look here as well vijaymurthy.blogspot.in/2011/03/…