SCP-based upload tool

Source: Internet
Author: User
Tags ssh account

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.