hapless
Run and manage background processes
TLDR
SYNOPSIS
hap command [options] [arguments]
DESCRIPTION
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.
PARAMETERS
run command
Run a command in the backgroundstatus id
Show status of a specific processlogs id
Show logs of a process (-f for follow mode)pause id
Pause a running processresume id
Resume a paused processkill id
Terminate a processclean
Remove completed processes from the list
CAVEATS
Does not persist across system reboots. Process tracking relies on PID files stored locally. Interactive commands that require terminal input are not supported in the background.
HISTORY
hapless was created by Misha Behersky (bmwant) and is written in Python. It was designed to be a simpler alternative to tools like screen, tmux, or nohup for basic background process management, with the goal of requiring zero configuration.

