执行外壳脚本时,mysql倾倒额外的搬运工
我想做一个将运行sh脚本以丢弃mysql表的cron。 但是我注意到,当我运行脚本时,创建了额外的搬运工或导演。 我想每天创建导演并将导出介绍。
这是我的脚本
上看起来很正常
但是在外壳上,我可以看到额外的caraters
://i.sstatic.net/cu7xv.png“ rel =“ nofollow noreferrer 哟,请问为什么要这样做? 谢谢。
I want to do a cron that will run SH script to dump mysql table.
But I notice that when I run the script, there are extra caracters on file or directorie created.
I want to create every day a directorie and put export in.
Here is my script
It's look normal on Ftp
But on shell I can see the extra caraters
Do yo have an idea of why this please ?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SH脚本是Windows格式而不是UNIX格式。我将其上传到Linux服务器之前对其进行了编辑,因此我只需更改Notepad ++中的格式即可。
The sh script was Windows Format instead of Unix format. I edited it on windows machine before upload it to linux server so I just change the format in Notepad ++.