shell中eof的问题
Posted hch的随笔 成功的秘诀在于恒心—迪斯雷利
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了shell中eof的问题相关的知识,希望对你有一定的参考价值。
今天编写shell脚本,执行时报错
原因是eof前面不能有空格或tab,否则会告警。
要以以下格式才行
function send { ftp -inv << eof open ip user $username $password dir cd mid pwd put $i dir bye eof }
以上是关于shell中eof的问题的主要内容,如果未能解决你的问题,请参考以下文章