📄 login_testusers.sh
字号:
#!/bin/sh# tries to login with a massive number of test accounts# See make_testusers.sh for a way to create these accounts.# number of accounts to connect withnumaccts=400# "prefix" of account namesname="bob"# account passwordpass="bob"# delay between printing messagesdelay=30# where to connectserver=localhost# number of zero-padded columns in suffixpadding=6# how many seconds until logouttotal=600num=0while [ "${num}" -lt "${numaccts}" ]; do num="`expr \"${num}\" '+' '1'`" form="`printf \"%0${padding}d\" \"${num}\"`" ( echo '' echo "${name}${form}" echo "${pass}" total=0; while [ "${total}" -lt "${maxtime}" ]; do sleep "${delay}" echo "My name is ${name}${form}" total="`expr \"${total}\" '+' \"${delay}\"`" done echo "/quit" ) | telnet "${server}" 6112 &doneexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -