Add an exec daemon plugin (#4424)
This commit is contained in:
12
plugins/inputs/execd/examples/count.sh
Executable file
12
plugins/inputs/execd/examples/count.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Example in bash using STDIN signaling
|
||||
|
||||
counter=0
|
||||
|
||||
while read; do
|
||||
echo "counter_bash count=${counter}"
|
||||
let counter=counter+1
|
||||
done
|
||||
|
||||
(>&2 echo "terminate")
|
||||
Reference in New Issue
Block a user