This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/bin/spawn-once

5 lines
67 B
Plaintext
Raw Normal View History

2019-06-06 23:02:27 +02:00
#!/bin/sh
if ! ps cx|grep "$1\$" >> /dev/null; then
exec $@
fi