#!/bin/bash FILENAME=$
DSTDIR=$ FTPSRV=ip
FTPUSER="user"
FTPPWD="password"
SRCDIR='/auto_U_self' FILE1=$ /usr/bin/ftp -in $FTPSRV <<!
user $FTPUSER $FTPPWD
cd $SRCDIR lcd $DSTDIR bin mget ${FILE1} quit
!
exit
相关文章
- 01-13Downloadftp
2024-01-13 17:52:34
#!/bin/bash FILENAME=$
DSTDIR=$ FTPSRV=ip
FTPUSER="user"
FTPPWD="password"
SRCDIR='/auto_U_self' FILE1=$ /usr/bin/ftp -in $FTPSRV <<!
user $FTPUSER $FTPPWD
cd $SRCDIR lcd $DSTDIR bin mget ${FILE1} quit
!
exit
下一篇:WeX5学习笔记 - 01