Name | mytot JSON |
Version |
2024.9.1
JSON |
| download |
home_page | None |
Summary | Tool of Tool |
upload_time | 2024-09-08 12:44:45 |
maintainer | None |
docs_url | None |
author | Xin-Xin MA |
requires_python | None |
license | GPL |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# mytot
My tool of tool
## INSTLL
```bash
pip3 install mytot -i https://pypi.python.org/simple --upgrade
```
TASK
---------
```bash
TASK [script_file]
```
跑一个程序,如果程序已经在运行,则不执行;
输出的日志为~/.cache/task_log/out.[date]
* 如果script_file以".sh"结尾,则使用`bash script_file`进行执行
* 如果script_file以".py"结尾,则使用`python script_file`进行执行
RUN
--------
```bash
RUN [script_file]
```
跑一个程序,并将其放置后台,输入的日志为./log/[script_file].run
KILL
----------
```bash
KILL [key word] [-9 or -15]
```
根据关键字杀掉相关的进程
MAIL
---------------
```bash
MAIL <email address> -s [subject] -a [attachments1] <attachment2>
```
需要配置账户的信息,配置文件为~/.config/mytot/config.ini。示例
```ini
[email]
smtp_server=smtp.163.com
; 用户名
username=xxx@163.com
; 登陆密码或授权码
password=J2L3E3K4D11E1B1G
; 默认收件人
default_to=xxx@163.com
```
Raw data
{
"_id": null,
"home_page": null,
"name": "mytot",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Xin-Xin MA",
"author_email": null,
"download_url": null,
"platform": null,
"description": "# mytot\nMy tool of tool\n\n## INSTLL\n```bash\npip3 install mytot -i https://pypi.python.org/simple --upgrade\n```\n\n\nTASK\n---------\n```bash\nTASK [script_file]\n```\n\u8dd1\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u5982\u679c\u7a0b\u5e8f\u5df2\u7ecf\u5728\u8fd0\u884c\uff0c\u5219\u4e0d\u6267\u884c;\n\u8f93\u51fa\u7684\u65e5\u5fd7\u4e3a~/.cache/task_log/out.[date]\n* \u5982\u679cscript_file\u4ee5\".sh\"\u7ed3\u5c3e\uff0c\u5219\u4f7f\u7528`bash script_file`\u8fdb\u884c\u6267\u884c\n* \u5982\u679cscript_file\u4ee5\".py\"\u7ed3\u5c3e\uff0c\u5219\u4f7f\u7528`python script_file`\u8fdb\u884c\u6267\u884c\n\nRUN\n--------\n```bash\nRUN [script_file]\n```\n\u8dd1\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u5e76\u5c06\u5176\u653e\u7f6e\u540e\u53f0\uff0c\u8f93\u5165\u7684\u65e5\u5fd7\u4e3a./log/[script_file].run\n\nKILL\n----------\n```bash\nKILL [key word] [-9 or -15]\n```\n\u6839\u636e\u5173\u952e\u5b57\u6740\u6389\u76f8\u5173\u7684\u8fdb\u7a0b\n\nMAIL\n---------------\n```bash\nMAIL <email address> -s [subject] -a [attachments1] <attachment2>\n```\n\u9700\u8981\u914d\u7f6e\u8d26\u6237\u7684\u4fe1\u606f\uff0c\u914d\u7f6e\u6587\u4ef6\u4e3a~/.config/mytot/config.ini\u3002\u793a\u4f8b\n```ini\n[email]\nsmtp_server=smtp.163.com\n; \u7528\u6237\u540d\nusername=xxx@163.com\n; \u767b\u9646\u5bc6\u7801\u6216\u6388\u6743\u7801\npassword=J2L3E3K4D11E1B1G\n; \u9ed8\u8ba4\u6536\u4ef6\u4eba\ndefault_to=xxx@163.com\n```\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "Tool of Tool",
"version": "2024.9.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "43cb17b88641b980ffd90e321ac2f9d873bb81d428b128b0768be5f279293768",
"md5": "537a1c628305350a196523b8573f1d03",
"sha256": "09de84f0a0bd1c4be2c80b71e7a5a4c2240aa99854d56a8fab3dbac9d7dcc631"
},
"downloads": -1,
"filename": "mytot-2024.9.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "537a1c628305350a196523b8573f1d03",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 31157,
"upload_time": "2024-09-08T12:44:45",
"upload_time_iso_8601": "2024-09-08T12:44:45.102442Z",
"url": "https://files.pythonhosted.org/packages/43/cb/17b88641b980ffd90e321ac2f9d873bb81d428b128b0768be5f279293768/mytot-2024.9.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-08 12:44:45",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mytot"
}