Datasets:
Download scripts/scp_copy.exp from Mortallll/Syn-UI-Final-samples: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/datasets/Mortallll/Syn-UI-Final-samples/resolve/main/scripts/scp_copy.exp
- Command line
-
hf download hf://datasets/Mortallll/Syn-UI-Final-samples/scripts/scp_copy.exp
-
curl -L -o scp_copy.exp https://huggingface.co/datasets/Mortallll/Syn-UI-Final-samples/resolve/main/scripts/scp_copy.exp
614 Bytes
| #!/usr/bin/env expect | |
| set timeout -1 | |
| set password $env(SERVER_PASSWORD) | |
| set source_path [lindex $argv 0] | |
| set dest_path [lindex $argv 1] | |
| spawn scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/Users/wangshuqing/Documents/Codex/2026-06-27/ip-10-21-12-41-fcp/work/known_hosts_syn_ui -o ServerAliveInterval=20 -o ServerAliveCountMax=3 -r $source_path $dest_path | |
| expect { | |
| -re "(?i)are you sure you want to continue connecting" { | |
| send "yes\r" | |
| exp_continue | |
| } | |
| -re "(?i)password:" { | |
| send "$password\r" | |
| exp_continue | |
| } | |
| eof | |
| } | |
| catch wait result | |
| exit [lindex $result 3] | |