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

9 lines
164 B
Bash

#!/bin/sh
for c in "$@"; do
echo $c
start=$(grep "start program" $c | sed -e 's/.*start program = "//' -e 's/".*//')
echo $start
( $start & )
done