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 os
import sys
files = 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.