tags:

views:

251

answers:

2

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.

I'm on a nix platform

+2  A: 

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

Devin Ceartas
Tim
No, it sends it to a background process. Doing this does not effect any other processes.
Devin Ceartas
Some of the details differ depending on the shell, but the basics are the same across sh, bash, ksh. Here's the top Google search I found for a tutorial. Google is your friend. http://kb.iu.edu/data/afnz.html
Devin Ceartas
Looks like ubuntu does not allow you to run a PHP script in the background.
Tim
A: 

An option is to run them in separate windows in screen. This will keep the output neatly compartmentalized, and you can disconnect from the screen leaving it in the background without interrupting the processes.

Williham Totland