2022-03-11 11:44:19 +01:00
|
|
|
---
|
|
|
|
- toNodes:
|
|
|
|
- ship1
|
|
|
|
- ship2
|
2024-11-18 22:32:13 +01:00
|
|
|
method: cliCommand
|
2022-03-11 11:44:19 +01:00
|
|
|
methodArgs:
|
|
|
|
- "bash"
|
|
|
|
- "-c"
|
|
|
|
- |
|
|
|
|
cat <<-"EOF" >test.sh
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "error: No argument supplied, give the hostname as the only argument"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
touch $1
|
|
|
|
echo "sorry..." > $1
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x test.sh
|
|
|
|
|
|
|
|
./test.sh WHOOPS.txt
|
|
|
|
|
2024-11-18 22:32:13 +01:00
|
|
|
replyMethod: file
|
2022-03-11 11:44:19 +01:00
|
|
|
ACKTimeout: 5
|
|
|
|
retries: 120
|
|
|
|
replyACKTimeout: 5
|
|
|
|
replyRetries: 3
|
|
|
|
methodTimeout: 5
|
|
|
|
directory: system
|
|
|
|
fileName: system.log
|