From 6bd3f033b5fa969b02449fa24665e7e46df1c8c8 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 23 Jul 2023 01:07:35 +0300 Subject: [PATCH] test io command --- executor.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/executor.sh b/executor.sh index 12cbe41..e3c631e 100755 --- a/executor.sh +++ b/executor.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh . ./config @@ -60,6 +60,19 @@ while read -r cmd mesg; do *) echo 'only http(s)' ;; esac ;; + "testio") + printf 'test io > ' + while read -r testinput; do + if [ ':q' = "$testinput" ]; then break; fi + if [ '1M' = "$testinput" ]; then + dd if=/dev/zero bs=1K count=1024 2>&1 + else + echo "$testinput" | dd 2>&1 + fi + printf 'test io > ' + done + toot $full_status | jq '.id, .errors' + ;; *) die; break ;; esac printf 'bbs > '