This commit is contained in:
陆柯 2021-08-17 20:23:42 +08:00
parent e5542ea0c9
commit 1ea14cee5f
3 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect
## Usage: expect this.sh [user@hostname] [filepath] [password]
## Example: expect this.sh adot@server.log.yuanjin.net /faronear/tac.log/log.server.torm 密码
## Example: expect this.sh adot@m1.bittic.net /faronear/tic/star.core.torm 密码
set timeout 30
spawn ssh [lindex $argv 0]