Tool introduction:
This tool is a file upload tool based on Python (2.6 2.7), ssh, SCP, and subversion. With this tool, you can easilyCodeUse the SSH account SCP to go To the WWW directory corresponding to the server.
Preparations:
1. Install
A. Ensure system installation: Python (2.6/2.7) subversion (Ubuntu Installation Method: sudo apt-Get install subversion Python-y)
B. download the file to the directory you want to install (for example :~ /Tools/IBD/), and confirm that the noc file is running (chmod + x NOC)
C. In ~ /Add to the bashrc File
Path = $ path:/home/Your sername/tools/AUC/
Export path
D. Run source ~ /. Bashrc
2. Configuration
Put the configuration file in ~ /. Sp_/ sp_. Conf
The format is as follows:
[Configname]
SVN = SVN // SVN/address/
Ssh_user = root
Ssh_server = 192.168.1 .*
Wwwroot =/example/DIR/wwwroot/
3. configuration instructions
Multiple configuration groups are allowed in the configuration. Each Configuration group has a configname. You can set it as long as it is not repeated.
SVN refers to the svn path that needs to be configured. When using single-byte mode, the svn information of the current directory is automatically searched, and the configuration is compared to the path (usually configured to the WWW directory of the project, if you want to go too deep, the parent layer cannot use this configuration)
Wwwroot refers to the www root directory in the service.
Start:
Open the terminal, switch to the directory where you want to submit the file, and enter
Sp_file
Multiple files can be separated by spaces.
:
For the code, see my Google SVN ..
Address: http://uxjs.googlecode.com/svn/trunk/sscp
Welcome to shoot bricks
Personal blog: http://www.xdarui.com/articles/77.shtml