mirror of
https://git.phreedom.club/localhost_frssoft/bbs-telnet
synced 2024-11-23 19:39:20 +02:00
test io command
This commit is contained in:
parent
0412550d45
commit
6bd3f033b5
13
executor.sh
13
executor.sh
|
@ -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 > '
|
||||
|
|
Loading…
Reference in New Issue