GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rocfy/python: python常用脚本

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
check_ip138.py
check_ip138.py
 
 
check_ping.py
check_ping.py
 
 
ssh_thread.py
ssh_thread.py
 
 
vps_baidu.py
vps_baidu.py
 
 

Repository files navigation

==========

##本项目为日常工作中的使用的python脚本

###1. ssh_thread.py 是一个批量执行命令的脚本,支持直接执行ssh命令及文件传输,支持多线程

	使用说明如下:

	-h,-H,--help         帮助页面 
    -C, --cmd            执行命令模式 
    -M, --command        执行命令模式 
    -S, --sendfile       传输文件模式 
    -L, --localpath      本地文件路径 
    -R, --remotepath     远程服务器路径 

    IP列表格式:

    IP地址		用户名     密码     端口
    192.168.1.1        root	  123456    22

  	e.g.
          批量执行命令格式: -C "IP列表" -M '执行的命令'
          批量传送文件:     -S "IP列表" -L "本地文件路径" -R "远程文件路径"
    错误日志文件:$PWD/ssh_errors.log

###2. check_ping.py 多进程检测ping,并取值

	默认开启4个进程,需要将hosts.txt IP列表文件放入同一目录下,IP列表每行一个,支持域名、IP

###3. check_ip138.py 通过ip138检测IP(域名)归属地

	使用方法: python check_ip138.py  192.168.1.1

###4. vps_baidu.py 使用baidupan备份VPS

	pip install baidupan

参考:http://solos.github.io/baidupan/

About

python常用脚本

Resources

Readme
Activity

Stars

16 stars

Watchers

1 watching

Forks

417 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.