执行外壳脚本时,mysql倾倒额外的搬运工

发布于 2025-01-28 04:27:21 字数 609 浏览 4 评论 0原文

我想做一个将运行sh脚本以丢弃mysql表的cron。 但是我注意到,当我运行脚本时,创建了额外的搬运工或导演。 我想每天创建导演并将导出介绍。

这是我的脚本

”这是我的脚本“

上看起来很正常

在ftp “

但是在外壳上,我可以看到额外的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

Here is my script

It's look normal on Ftp

Ftp

But on shell I can see the extra caraters

Shell

Do yo have an idea of why this please ?
Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我最亲爱的 2025-02-04 04:27:21

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 ++.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文