如何从CLI运行多个PHP脚本 [英] How to run multiple PHP scripts from CLI

查看:123
本文介绍了如何从CLI运行多个PHP脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个不同的搜寻器脚本要并行运行,我想知道我使用什么命令来同时执行所有这三个命令。

I have three different crawler scripts that I want to run in parallel and I'm wondering what command do I use to execute all three at the same time.

我在nix平台上

推荐答案

如果在* nix平台上,请在空格符号(&)该命令的末尾应将其放在后台,让您返回shell以运行其他命令。显然,您想确保作业的输出进入文件而不是标准输出(屏幕),否则输出将在各种命令之间变得混乱

if you're on a *nix platform, putting space ampersand ( & ) at the end of the command should put it in the background, giving you back your shell to run other commands. Obviously you want to make sure the output of the job goes to a file and not standard output (screen) or the output will get confusing between the various commands

这篇关于如何从CLI运行多个PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆