LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] spawning a process from a web page..

[ILUG] spawning a process from a web page..

Johno Sullivan johno at tornado.ie
Wed Nov 17 10:30:14 GMT 1999


php doesn't have a fork afaik.. couldn't you just call your perl script in
the usual manner, at the start of the perl script fork it and check the
return value from fork, if its zero continue, otherwise die.

johno

On Wed, 17 Nov 1999, Hary Walsh wrote:

>>>>>> "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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell