[REBOL] Re: Function "LAUNCH" - Usage questions
From: rpgwriter:y:ahoo at: 13-Jun-2002 11:44
--- "[riusa--email--it]" <[riusa--email--it]> wrote:
> >
> > If the two Rebol programs can't communicate
> directly,
> > have them write to a .TXT file, and the other
> would look
> > for keywords do do something, write something else
> to
> > the file, etc,etc.
> >
> > I have tried and used Rebol for about 2 years now
> (at least,
> > it seems like 2 years... I first started using it
> when /Core
> > couldn't even do a Forever loop) and this seems
> like an OK
> > idea, but I've never had a reason to try it.
> >
> > Daniel S, 14
> yrs old
> >
>
> Hi Daniel,
> what you say is enought good. But this system has
> some problems. Infact:
>
> 1) two programs risk to attempt to write the file at
> the same time.
Use different files for each direction of
communication; for any given file, one program is the
reader, one the writer.
Or use lock and signal files to indicate when the file
is in use, when it has data wanting to be read, etc.
Or do both.
> 2) communication is slow.
This is true. One reason why TCP/IP is probably
better.
> 3) the file must be accessible to every program
> (directory sharing? sometimes is not possible!)
Again, true, and advantage TCP/IP.