FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux/get.exp at master · oldmuster/linux · GitHub
oldmuster
linux
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
linux
/
get.exp
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (11 loc) · 264 Bytes
Breadcrumbs
linux
/
get.exp
Copy path
File metadata and controls
11 lines (11 loc) · 264 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/expect
set ipadd [lindex $argv 0]
set port [lindex $argv 1]
set username [lindex $argv 2]
set userpasswd [lindex $argv 3]
set timeout 10
spawn scp -P $port $username@$ipadd:/tmp/*${ipadd}* /tmp/
expect {
"password" {send "$userpasswd\r"}
}
expect eof
Back
|
FazBrowse Home
|
New Git URL