Start the dog lick guard for an overnight session with energy-saving settings and rotating alerts
Start the dog lick guard for long unattended monitoring with energy-saving settings.
/overnight-guard # 8 hours, desk range (default)
/overnight-guard 12 # 12 hours
/overnight-guard 8 --range 6 # 8 hours, 6-foot detection range
Kill any existing guard processes to avoid duplicates:
pkill -f 'dog_lick_guard.swift' 2>/dev/null || true
Set energy-saving mode — keep CPU awake, let display sleep:
caffeinate -i -t <seconds> &
where seconds = hours * 3600. Default $ARGUMENTS is 8 if not provided.
Start the guard in the background:
./run.sh --range <feet> 2>&1
Pass --range if the user specified one. Run as a background task so the conversation stays responsive.
Verify exactly one dog_lick_guard process is running:
ps aux | grep dog_lick_guard | grep -v grep
Report status to the user:
After stopping, check what happened overnight:
cat logs/dog_lick_guard.log
The log contains timestamped entries for start, every alert fired, and stop.
logs/dog_lick_guard.log by default.pkill -f 'dog_lick_guard.swift'