Files
web.ems/wxc2_omc/configuration/bssomc/ftpGetFile
agtuser 16a3fd1e1b init
2024-11-11 17:56:00 +08:00

21 lines
255 B
Bash
Executable File

#!/bin/bash
remote_ip=$1
logName=$2
logPassword=$3
remote_dir=$4
local_dir=$5
file=$6
echo "$remote_dir $local_dir $file" >> /tmp/test.txt
ftp -i -n $remote_ip <<haha
user $logName $logPassword
binary
cd $remote_dir
lcd $local_dir
get $file
bye
haha