简体   繁体   English

从SH脚本运行3个php命令

[英]Run 3 php commands from SH script

I am trying to run the following commands from a .sh script at the command line. 我正在尝试从命令行中的.sh脚本运行以下命令。 The problem is that when I try to run them one after another they give the following error: "not found.batch_control_files/Res" and "not found.batch_control_files/Condo " ...if I remove all but one of the commands it runs fine? 问题是,当我尝试一个接一个地运行它们时,它们给出以下错误:“ not found.batch_control_files / Res”和“ not found.batch_control_files / Condo” ...如果我删除了它运行的所有命令之一精细? I was hoping I could have each command run and then execute the next command...not sure what it is doing here? 我希望我可以先运行每个命令,然后执行下一个命令...不确定在这里做什么?

/usr/bin/php -f run_interactive_job.php batch_control_files/Res
/usr/bin/php -f run_interactive_job.php batch_control_files/Condo
/usr/bin/php -f run_interactive_job.php batch_control_files/Land

What's in "run_interactive_job.php"? “ run_interactive_job.php”中有什么?

If you use absolute paths you can at least be sure it's looking where you expect. 如果您使用绝对路径,则至少可以确保它在您期望的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM