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] [-f]

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

  • -f 此时"key word"是一个bash或python文件,会根据文件名绝对路径进行匹配。例如存在进行 "python3 /.../a/long_task.py"和"python3 /.../b/long_task.py",在工作目录下b执行kill -f long_task.py,会杀掉"python3 /.../b/long_task.py" 但是不会杀掉"python3 /.../a/long_task.py"

MAIL

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

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

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

Project details


Release history Release notifications | RSS feed

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

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

mytot-2026.6.4-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mytot-2026.6.4-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mytot-2026.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e281949b6c3eb7a399e17e53a94d129b592a34bbbcfb6e54bac8776cee7840a0
MD5 8203a95c5089b0debdb4c48d1823b606
BLAKE2b-256 668a144cd690ef8c29453847302edd2b0d5e32a5371991f03609e62d47ac4788

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