Upload file to specific folder
来源:互联网 发布:天音淘宝宝贝裂变工具 编辑:程序博客网 时间:2024/04/29 15:02
1. Problem
I edit source code in my laptop and run it in server, which is equipped with gpu. So I need a script to upload source to the specific folder in the server.
2. Code
#!/usr/bin/env python# -*- coding: utf-8 -*-import osimport sysfiles = sys.argv[1]os.system('pscp {} zyt3781909@git.dscvlab.com:/home/zyt3781909/py-faster-rcnn/{}'.format(files, files))
BTW, run this script in /home/duino/py-faster-rcnn/:
./upload.py test.py
Done.
0 0
- Upload file to specific folder
- How to assign control right to specific folder
- upload file to web server
- Android Upload File to Server
- Android Upload File to Server
- Use apache upload framework to manage to upload file
- Set Access Control to File/Folder (ACL)
- C# copy file to remote shared folder
- using http upload file to web server
- test file : upload txt/image to FastDFS
- adb upload so file to /system/lib
- 【Java】Upload file to web services
- How to merge/cover specific file using git
- File upload error - unable to create a temporary file
- use curl to upload file with remote php file
- upload file
- Upload file
- upload file
- oracle pl/sql集合
- mybatis-初级篇-mybatis-config.xml
- Windows批处理 - 给自己写个库(1. 路径处理)
- 我的开源之旅
- Python练习3
- Upload file to specific folder
- 关于Windows主机之间互ping不通的问题
- Java Collection Framework : Collection 接口
- 安卓开发之基于AccessibilityService实现聊天机器人对其他应用的调起
- A 'Brief' History of Neural Nets and Deep Learning, Part 2
- codeforces 348A Mafia
- 页面JS正则表达式验证IP
- netmap源码分析(一)插入 netmap 代码到驱动程序
- C#中窗体Form的美化