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