ftp -n $Server <<End-Of-Session
user anonymous "$Password"
binary
bell
cd $Directory
put "$Filename.lsm"
put "$Filename.tar.gz"
bye
End-Of-Session
上述通过ftp存放文件的shell脚本中,End-Of-Session是Here Document用法?我理解就是到达最下方的End-Of-Session后会自动返回第一行,这样不就是死循环了?请指教!谢谢!
潇潇雨雨