Re: Using system() at Web Host
- Posted by Patrick Barnes <mrtrick at gmail.com> Oct 12, 2005
- 449 views
For a linux app, try appending '&' to the end of the system call... ie: system("exu mailer.exu arg1 arg2 arg3 &") On 10/12/05, cklester <guest at rapideuphoria.com> wrote: > > > posted by: cklester <cklester at yahoo.com> > > I'm using system() to run a program (mailer.exu) when a link on my web pa= ge is > clicked. The thing is, the program I run will be doing something like thi= s: > > }}} <eucode> > while TRUE do > -- do some stuff > sleep(300) -- sleep on it > if time_to_exit() then > exit > end if > end while > </eucode> {{{ > > So it should stay active once the web server is done with the system() ca= ll, > but it seems to hang, waiting for system() to return with something. I k= now > that should not be the case with system(). > > Any hints on how to track this down? It seems the mailer.exu program and = the > web server are intricately linked when they should not be. > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ > > > > -- MrTrick ----------