Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
毎日手動で行っているタスクを自動化するスクリプトを書きたいと思います。このタスクでは、WinSCP を使用して UNIX サーバー (Solaris) からデスクトップ (Windows XP) にいくつかのファイルをダウンロードする必要があります。Python またはシェル スクリプトを使用して、UNIX サーバーのパスから Windows XP PC のパスにファイルをコピー/移動する方法はありますか?
Python を使用する場合は、paramiko ライブラリを使用できます。sftp をサポートしています。Windows でファイルを取得したら、shutils ライブラリを使用して Windows のパスに移動します。
Cygwinをrsyncと一緒に使用することを検討しましたか?rsyncを使用して必要なファイルをフェッチする小さなbashスクリプトを記述し、これを毎日のcronジョブとして実行できます。