Re: Can I make a process run in background?
| From: | Robert Cummings | Date: | Tue, 06 Nov 2007 18:49:19 +0000 |
| Subject: | Re: Can I make a process run in background? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264141@lists.php.net to get a copy of this message | ||
On Tue, 2007-11-06 at 18:05 +0100, Luca Paolella wrote:
> Hi,
>
> I'm very grateful for your help (thanks to everybody!), but maybe I
> didn't explain myself correctly, I'm sorry. What I need is the bot to
> log onto the server and, being logged as a user, to send some
> periodic messages on a channel (<Bot> Hello!) while listening for
> events and reacting consequentially (<User> !say Hi <Bot> Hi), so
> running two parallel scripts that connect separately won't do. A
> friend of mine suggested me a solution: he said that maybe two php
> scripts could "share" the same connection to the irc server so that
> while the first one processes the events, the second one acts in
> background, is it possible?
> The script already runs via terminal, anyway, on Linux (Debian)
This can be done quite easily using shared memory and/or a database to
share data between the scripts.
Cheers,
Rob.
--
...........................................................
SwarmBuy.com - http://www.swarmbuy.com
Leveraging the buying power of the masses!
...........................................................