简体   繁体   中英

Run 3 php commands from SH script

I am trying to run the following commands from a .sh script at the command line. 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? 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"?

If you use absolute paths you can at least be sure it's looking where you expect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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