View Single Post
Old Jun 6th, 2007, 11:25 PM   #1
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Question Executing two scripts concurrently on your home machine

I'd like to know how I can run the same script twice (on the command line or even in my browser) so that I can get overlapping outputs on my windows machine. So, for instance if the script were something simplistic like the following:[PHP]<?php
while(true){
fwrite(STDOUT, "Process ID: " . getmypid() . "\n");
sleep(1);
}
?>[/PHP]The output in the command line would be something along the lines of:
Process ID: 3894
Process ID: 3894
Process ID: 3894
Process ID: 2295
Process ID: 3894
Process ID: 2295
...
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote