← 返回命令列表

Linux command

hapless 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run a command in the background

hap run [command]

List all tracked processes

hap

Show status of a specific process

hap status [id]

Show logs of a process

hap logs [id]

Show live log output

hap logs -f [id]

Pause a running process

hap pause [id]

Resume a paused process

hap resume [id]

说明

hapless is a lightweight command-line utility for running and managing background processes. It wraps commands to track their status during and after execution, without requiring a daemon process or configuration files. Simply prefix any command with hap run to launch it in the background with automatic logging and status tracking. The tool provides a convenient overview of all tracked processes with their current status, exit codes, and runtime. Logs for both stdout and stderr are automatically captured and can be reviewed at any time.

参数

run _command_
Run a command in the background
status _id_
Show status of a specific process
logs _id_
Show logs of a process (-f for follow mode)
pause _id_
Pause a running process
resume _id_
Resume a paused process
kill _id_
Terminate a process
clean
Remove completed processes from the list

FAQ

What is the hapless command used for?

hapless is a lightweight command-line utility for running and managing background processes. It wraps commands to track their status during and after execution, without requiring a daemon process or configuration files. Simply prefix any command with hap run to launch it in the background with automatic logging and status tracking. The tool provides a convenient overview of all tracked processes with their current status, exit codes, and runtime. Logs for both stdout and stderr are automatically captured and can be reviewed at any time.

How do I run a basic hapless example?

Run `hap run [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does run _command_ do in hapless?

Run a command in the background