Python day9 Batch management tool
Catalog file: (Python3 program)
GitHub Link: https://github.com/Liang2580/python_day9
[[email protected] home]#Tree python_day9/python_day9/├──bin│├──aa│├──cc│├──__init__. py│└──main.py # Main program Entry ├──conf│├──accounts.cfg│├──__init__. py│├──__pycache__││├──__init__. cpython-36. Pyc││└──settings.cpython-36. pyc│└──settings.py #配置文件 ├──core│├──1. py│├──__init__. py│├──logger.py # log │├──__pycache__││├──__init__. cpython-36. Pyc││├──logger.cpython-36. Pyc││└──server.cpython-36. pyc│└──server.py # Main program ├──__init__. py├──log│├──__init__. Py│└──system.log # log file └──readme.md
README Introduction
Simple one python3 developed by a bulk distribution of a gadget
Settings is where the configuration file resides.
The location of the server's IP and user name password
You can execute Linux commands. You can also use the Help
Use the following methods:
#python36 bin/main.py1 group1 group2 3## (EG:GROUP1) group1H1192.168.57.128H2192.168.57.129ls------------------------192.168.57.129------------------------AA anaconda-Ks.cfginit.pylsPython-3.6. 0Python-3.6. 0.tgz------------------------192.168.57.128------------------------Aaanaconda-ks.cfginit.pylscat AA upload:p ut cc/rootput sucesssput sucesss View Log2018-02-24 16:05:19,302-system-info-account {192.168.57.129} signinchcmd ls2018-02-24 16:05:19,554-system-info-account {192.168.57.128} signinchcmd ls2018-02-24 16:08:01,732-system-info-account {192.168.57.129} signinchcmd ls2018-02-24 16:08:01,857-system-info-account {192.168.57.128} signinchcmd ls2018-02-24 16:08:05,455-system-info-account {192.168.57.129} signinchcmd cat AA2018-02-24 16:08:05,588-system-info-account {192.168.57.128} signinchcmd cat AA2018-02-24 16:08:39,484-system-info-account {192.168.57.129} signinchCMD put cc/Root2018-02-24 16:08:39,641-system-info-account {192.168.57.128} signinchCMD put Cc/root
Python day9 Batch management tool