Skip to main content

Tool of Tool

Project description

mytot

My tool of tool

INSTLL

pip3 install mytot -i https://pypi.python.org/simple --upgrade

TASK

TASK [script_file]

跑一个程序,如果程序已经在运行,则不执行; 输出的日志为~/.cache/task_log/out.[date]

  • 如果script_file以".sh"结尾,则使用bash script_file进行执行
  • 如果script_file以".py"结尾,则使用python script_file进行执行

RUN

RUN [script_file]

跑一个程序,并将其放置后台,输入的日志为./log/[script_file].run

KILL

KILL [key word] [-9 or -15]

根据关键字杀掉相关的进程

MAIL

MAIL <email address> -s [subject] -a [attachments1] <attachment2>

需要配置账户的信息,配置文件为~/.config/mytot/config.ini。示例

[email]
smtp_server=smtp.163.com
; 用户名
username=xxx@163.com
; 登陆密码或授权码
password=J2L3E3K4D11E1B1G
; 默认收件人
default_to=xxx@163.com

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mytot-2024.10.4-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file mytot-2024.10.4-py3-none-any.whl.

File metadata

  • Download URL: mytot-2024.10.4-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for mytot-2024.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa23ca06485fb5d76ce47679e8121059e2790e34d90b36a05e1b651b1aedcbf6
MD5 9df970d4589d7f216e293a11c73fb667
BLAKE2b-256 d640006fe8d2a67dd12bc619f8c3dec95b55a9f08e779b683db02e7b5de61fc7

See more details on using hashes here.

Supported by

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