1 Star 5 Fork 1

光明顶魔教工程师 / linux_script

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
g06_scp 470 Bytes
一键复制 编辑 原始数据 按行查看 历史
光明顶魔教工程师 提交于 2021-04-15 09:33 . update
#!/usr/bin/python3.8
import os
import sys
if len(sys.argv) < 2:
print("g06_scp down/up file1 file2...");
exit(-1);
mod = sys.argv[1];
files = sys.argv[2:];
if mod != "down" and mod !="up":
print("g06_scp down/up file1 file2...");
exit(-1);
for file in files:
if mod=="down":
os.system("scp -P 8026 yala@beijg.3322.org:scp/{} ./".format(file))
elif mod=="up":
os.system("scp -P 8026 {} yala@beijg.3322.org:scp/".format(file))
1
https://gitee.com/zhaojun_chao/linux_script.git
git@gitee.com:zhaojun_chao/linux_script.git
zhaojun_chao
linux_script
linux_script
master

搜索帮助