>>>>> "Caolan" == Caolan McNamara <Caolan.McNamara at ul.ie> writes:
Caolan> On 16-Nov-99 Donncha O Caoimh wrote:
>> I'd like to spawn a Perl script from a PHP script running off
>> Apache and I do the usual exec() call but of course the script
>> blocks until the Perl script finishes. Has anyone managed to
>> detach a child process from the paren in a similar situation?
Many scripts implement unix system interaction with different
symantics. What I normally do in these situations is to scribble a
flow chart of what needs to happen from a Unix perspective first, and
then try to translate it into the scripting language I'm using.
So, in a nuthsell, you need to fork, change your process group, and
exec you're new script. Can these atomic actions be represented in
PHP? I know nothing of PHP
--
hjw
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!