Coder Social home page Coder Social logo

upyun-sdk-script's Introduction

脚本使用说明

填写 username bucket password 然后运行,如果提示需要安装python的包可以使用 pip install 去安装,例如

$pip install requests

视频教程

1.删除文件:

https://techs.b0.upaiyun.com/videos/cdnpage/delete_file.html

后台运行:

1.Centos/RedHad

   yum -y install screen
   screen -S delete_upyun_file
   python delete_file.py

2.Debian/Ubuntu

	sudo apt-get install screen
	screen -S delete_upyun_file
	python delete_file.py

通过screen在后台运行脚本的好处就是即使本地与远程ssh主机断开后,程序依然能够正常运行

	~$ screen -ls #查看当前后台运行的脚本
	There are screens on:
	        3003.test       (03/24/2016 10:58:26 AM)        (Attached)
	        2860.delete     (03/24/2016 10:57:52 AM)        (Detached)
	        6828.py (03/16/2016 08:50:22 PM)        (Detached)
	3 Sockets in /var/run/screen/S-fangwenjun.
	$ screen -r test #进入已经创建的后台任务中

更新历史

2016-3-24:

1.增加用户交互功能,无需进入脚本输入参数
2.输入密码不可见
3.修复2处可能抛异常的地方

2017-07-12:

  1. 因接口变动, headers['X-List-Limit'] 字段里面的值修改为str类型

upyun-sdk-script's People

Contributors

monkey-wenjun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.