Skip to main content

A simple and powerful background task management tool

Project description

RunMan

RunMan 是一个简单而强大的后台任务管理工具,支持运行脚本、查看日志、管理进程等功能。

功能特性

  • 🚀 后台运行脚本:支持 Python 和 Shell 脚本的后台运行
  • 📜 日志管理:自动记录日志,支持实时查看和历史查看
  • 🏷️ 别名管理:自动分配单字母别名,方便快速操作
  • 🔄 任务重启:一键重启任务
  • 👥 多用户支持:支持多用户环境(本地和 Docker)
  • 🎯 进程组管理:kill 时自动终止所有子进程
  • 📝 命令历史:记录最近运行的命令
  • 🔍 任务监控:查看任务状态和运行时间

安装

pip install r-task-manager

使用方法

基本命令

# 查看所有运行中的任务(默认)
r

# 启动 Python 脚本
r script.py

# 启动 Shell 脚本
r script.sh

# 启动脚本并传递参数
r script.py arg1 arg2

# 查看所有任务
r ls

# 终止任务(使用别名)
r kill a

# 查看任务日志
r log a
# 或简写
r l a

# 重启任务
r r a

# 查看任务详情
r watch a
# 或简写
r w a

# 显示命令历史
r a

# 初始化 .bashrc(添加常用别名)
r init

# 调试模式启动脚本
r debug script.py

目录跳转

# 方法1:加载 rcd 函数后使用
eval $(r func)
rcd a

# 方法2:直接使用
eval $(r cd a)

# 方法3:获取路径后跳转
cd $(R_PATH_ONLY=1 r cd a)

配置

RunMan 的配置文件存储在用户主目录下的 .runman 目录:

  • ~/.runman/tasks/ - 任务配置文件
  • ~/.runman/history.json - 命令历史

许可证

MIT License

作者

dreamer

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

r_task_manager-1.0.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

r_task_manager-1.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file r_task_manager-1.0.1.tar.gz.

File metadata

  • Download URL: r_task_manager-1.0.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for r_task_manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2332c724cb65b1dbec67b40345caad9b29bc6155ebaf155cdac607233a1064a3
MD5 16a80bd54a56231590605ec79f0d6739
BLAKE2b-256 b0046aae8e86a29afc5ceac1cd51299ad8144dab286be382979c46b8d8cfa6e0

See more details on using hashes here.

File details

Details for the file r_task_manager-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: r_task_manager-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for r_task_manager-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5aaa1061056defb9e1a9f2161f7e3bd4589ed36928b126324d4db692872e325a
MD5 0d286fe41ae09951031446b473c0378e
BLAKE2b-256 7704b568695eb502d4698089b939776465bb42d5171b36e4d0ec99b0f34d7653

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