2

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?

1
  • Please check my post : sundarpari.blogspot.in/2012/12/… and let me know if that helps. Commented Dec 16, 2012 at 18:16

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

3 Comments

yeah paramiko is nice! I recommend you also
Thanks for your suggestion. May I know is there anything need to be configured in the client PC (like installing Cygwin)?
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/…
1

Have you considered using Cygwin together with rsync? You could write a small bash script that uses rsync to fetch the files you need, and run this as a daily cron job.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.