commit bfb273dc66a39f0bb0089b7864a44d36486907ec Author: Matthias Johnson Date: Sun Feb 1 22:59:06 2026 -0700 initial commit diff --git a/systab b/systab new file mode 100755 index 0000000..7d1580a --- /dev/null +++ b/systab @@ -0,0 +1,568 @@ +#!/usr/bin/env bash +set -euo pipefail + +# catbsysd - A cron/at/batch-like interface for systemd +# Managed jobs are marked with: # CATBSYSD_MANAGED + +readonly SCRIPT_NAME="systab" +readonly SYSTEMD_USER_DIR="${HOME}/.config/systemd/user" +readonly MARKER="# CATBSYSD_MANAGED" +readonly CRONTAB_EXAMPLE="# Example crontab format (for reference): +# Min Hour Day Month DayOfWeek Command +# * * * * * /path/to/command +# 0 2 * * * /path/to/nightly-job +# */15 * * * * /path/to/every-15-min +# +# Actual systemd timers below (OnCalendar format): +" + +# Global variables for options +opt_time="" +opt_command="" +opt_file="" +opt_notify=false +opt_syslog=false +opt_email="" +opt_edit=false +opt_list=false +opt_clean=false +opt_status=false +opt_filter="" + +usage() { + cat < Time specification (see TIME FORMATS below) + -c Command string to execute + -f