?? 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 + -