telegraf/plugins/inputs/execd/examples/count.sh

13 lines
177 B
Bash
Raw Normal View History

2020-02-28 18:46:03 +00:00
#!/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")