ungleich-tools/monit-start-all-from-comman...

9 lines
164 B
Plaintext
Raw Permalink Normal View History

2021-12-30 21:53:18 +00:00
#!/bin/sh
for c in "$@"; do
echo $c
start=$(grep "start program" $c | sed -e 's/.*start program = "//' -e 's/".*//')
echo $start
( $start & )
done