在 Windows 上运行 shell 脚本 - 使用 DAMP 安装 Drupal

发布于 2024-10-21 02:20:34 字数 222 浏览 6 评论 0原文

我已经在 Windows Vista 上安装了 DAMP,并在我的 drupal 文件夹中创建了一个配置文件,其中包含需要运行的 shell 脚本。

profile/donor_rally/rebuild.sh

但是,我不知道如何执行这个 shell 脚本。

我不熟悉 shell 脚本命令语言,您愿意向我提供有关如何执行此 shell 脚本的分步说明吗?

谢谢。

i've installed DAMP on Windows Vista, and have created a profile in my drupal folder with a shell script that needs to run.

profiles/donor_rally/rebuild.sh

However, I don't know how to execute this shell script.

I am not familiar with shell script command language, would you be willing to provide me with a step-by-step instructions on how to execute this shell script?

Thanks.

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

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

发布评论

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

评论(2

薔薇婲 2024-10-28 02:20:34

看起来您正在尝试运行 Bourne shell 脚本,该脚本通常只能在 unix 计算机上运行。从名称猜测,这应该重建某些东西,可能是数据库,但这只是猜测。

简而言之,你无法运行它,至少不容易运行。如果您要发布脚本的(编辑后的)内容,您可能会得到一些有关如何将其移植到 Windows cscript 或批处理文件的答案。

It looks like you're trying to run a Bourne shell script, which would usually only run on a unix machine. Guessing from the name, this is supposed to rebuild something, likely the database, but that's just a guess.

The short answer is you can't run it, at least not easily. If you were to post the (edited) contents of the script you might get some answers about how you could port it to a Windows cscript or batch file.

热风软妹 2024-10-28 02:20:34

对于那些不熟悉 Windows 中 shell 脚本的人:

我没有找到在 Windows 上托管的 AMP 上运行 shell 脚本的简单解决方案。

相反,我在 webenabled.com 上获得了一个帐户

,然后使用 PuTTy 进行隧道连接。

我找到了使用 UNIX 的指南:http:// /freeengineer.org/learnUNIXin10months.html

和 lynda.com

For others who are uninitiated to shell scripting in Windows:

I did not find a straightforward solution for running shell scripts on AMP hosted on Windows.

Instead I got an account at webenabled.com

Then used PuTTy to tunnel in.

I found this guide to using UNIX: http://freeengineer.org/learnUNIXin10minutes.html

And lynda.com

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