Files
dotfiles/bin/run_once

4 lines
86 B
Bash
Executable File

#! /bin/bash
# Run program unless it's already running
pgrep $@ > /dev/null || ($@ &)