Skip to navigation
Check a script for text output with bash
04.07.23
```console check=$(speedtest --page https://www.myridia.com -c speedtest | grep '"ok":true') if [ -z "$check" ]; then echo "failed" else echo "ok" curl -X POST https://foo.com/task -d task=speedtest_slbj -k fi ```
Reply
Anonymous
Information Epoch 1732420815
When you must fail, fail noisily and as soon as possible.
Home
Notebook
Contact us