#!/bin/sh # scratch config: this computer + one unreachable ssh host, autopilot in dry run usage: mkcfg.sh rm -rf "$1"; mkdir -p "$1/ServerMonitorPy" cat > "$1/ServerMonitorPy/servers.json" <<'JSON' {"version": 1, "servers": [ {"id": "local0000001", "name": "This computer", "group": "Local", "transport": 0, "autopilot": {"dryRun": true}}, {"id": "dead00000001", "name": "Unreachable box", "group": "Test", "transport": 1, "host": "127.0.0.1", "port": 1, "user": "nobody", "autopilot": {"dryRun": true}} ]} JSON