阅读背景:

使用plink通过批处理文件执行shell脚本(.sh文件)时sed工作不正常,但在使用ssh(putty)手动执行时效果很好

来源:互联网 

I am having an issue getting sed to work correctly. I have a shell script (.sh file) on a remote server that is running Cent OS Linux. I want to execute using a batch file and Plink. When I execute the shell script (.sh file) using Putty or any other ssh ( e.g ./backup.sh ) it works fine but when I execute the shell script (.sh file) using a batch file sed throws an error message.I am having an issue getting sed to work correc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: