Parallel running php scripts on Linux?
-
Hi, so here is the thing. I would like to run/translate the following script in linux: This bat file would execute the main.php in parallel with the given parameters. start /d "E:\xampp\php\" php.exe E:\xampp\htdocs\main.php param1 param2 start /d "E:\xampp\php\" php.exe E:\xampp\htdocs\main.php param1 param2 I would like to create same script for linux. I will be using putty. I should be able to write the script in Notepad and then just copy it. It should be using screen so it executes on background so i can close the connection.. Any ideas?
-
Answer:
php /path/to/your/main.php param1 param2 & php /path/to/your/main.php param1 param2 & The "&" at the end of the line makes the command run in the background.
GAZ at Yahoo! Answers Visit the source
Related Q & A:
- Where To Get Free Php Scripts?Best solution by Yahoo! Answers
- How to run test in parallel in multiple nodes?Best solution by groups.google.com
- How do I run Multiple Parallel Suites in TestNG?Best solution by Stack Overflow
- How to open several MappedByteBuffer in parallel in Java?Best solution by stackoverflow.com
- Parallel parking tips?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.