Skip to main content

pythonlinux python中简单运行linux命令

Project description

Author

七魔陌

  • Email: qimomo.17@qq.com 0.1.3 :
  • 前面几个版本有重大问题请不要使用\n 本模块是在Python中执行简单Linux命令(实现方法) 主要是作者不会Windows上cmd命令而制作的一个模块 \n里面有一个su : su qi #登录用户qi 用之前使用命令 pythonlinux-file-path you_path_file 设置su与histort.txt的位置 比如在 /data/data/pythonlinux/里面有su与histort.txt 命令就是: pythonlinux-file-path /data/data/pythonlinux/

import pythonlinux a=linux() a.run('pythonlinux-file-path /data/data/pythonlinux/') #或者直接指定 linux_file_path='/data/data/pythonlinux/' ''' '''python
import pylinux a=linux() a.run('pylinux-file-path /data/data/pythonlinux/') #或者直接指定 pylinux_file_path='/data/data/pythonlinux/' ''' su文件: 用户名#$权限路径#$密码 比如: 用户名: qi 密码 : 123 访问路径: /data/data/pythonlinux/ 就写成 qi#$/data/data/pythonlinux/#$123 没密码: qi#$/data/data/pythonlinux/#$0 程序最高访问权限: qi#$0#$123 多个: qi#$/data/data/pythonlinux/#$123 ii#$0#$0

使用例子1:模块版本0.1.3 使用例子2:模块版本0.1.3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qimomo_py_linux-0.1.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qimomo_py_linux-0.1.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file qimomo_py_linux-0.1.3.tar.gz.

File metadata

  • Download URL: qimomo_py_linux-0.1.3.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for qimomo_py_linux-0.1.3.tar.gz
Algorithm Hash digest
SHA256 65706ad40d113a1ccc86c50253e64abd6736739705854f13f2fd06dc5ee23ed1
MD5 046ebf6dd43b408afa8eaa697270d1d0
BLAKE2b-256 3457805f2e5a08dd0ff8a13d1340f4f3c1d0e0f5a177e31b80f1c0e527ba45f7

See more details on using hashes here.

File details

Details for the file qimomo_py_linux-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qimomo_py_linux-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79d378914a0557e019810b96a833157936f12b8cf3f9da4fa87a7de64a1335b3
MD5 fd4953247fdcfa6beda512be7fcfbe01
BLAKE2b-256 4463fa2e22771a269491ede21e98a43a10979fa9dc885be1ea837fd82cc5f98d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page