# coding=utf-8
#writer:zyh
#time:20170917
import paramiko
import datetime
import os
hostname = '192.168.56.102'
username = 'trade'
password = '123456'
port = 22
local_dir = r'E:\work\office\soft_version\tradeserver\hxzq_publish_v3.4.0_20170915'
#windows文件夹所在位置
local_dir_csv=local_dir+"\csv"
local_dir_config=local_dir+"\config"
local_dir_etc=local_dir+"\etc"
local_dir_ini=local_dir+"\ini"
local_dir_script=local_dir+"\script"
local_dir_soft=local_dir+"\soft\\3.0"
local_dir_tcc=local_dir+"\\tcc\cfg"
#linux端所在位置
remote_dir = '/home/trade/test/'
remote_dir_config='/home/trade/test/backup/config/xml_trade/'
remote_dir_csv='/home/trade/test/backup/csv/csv_trade/'
remote_dir_ini='/home/trade/test/backup/ini/ini_trade/'
remote_dir_soft=&#
一个windosw端向linux端传文件python脚本
最新推荐文章于 2023-05-24 11:28:08 发布