Hi,
No, UNIX functions like fork() don't work in Windows.
Commander.c won't even compile in Windows, because it uses UNIX
specific include files. Also, REBOL's graphical console in Windows
can't be redirected. Perhaps there could be another way to communicate
than Null characters in stdout. Someone on this list posted a solution
where REBOL writes the command to a file, and a simple program checks
if the file exists, executes and then deletes it.
I will try to write a solution where REBOL and "Commander" communicate
with a TCP socket, and stdout is returned to REBOL. It would work both
in Windows and UNIX.
--
Michal Kracik
GS Jones wrote:
>
> From: "Frank Sievertsen"
> > Hi Scott!
> >
> > > Thanks for the contribution. My C skills have grown very rusty (in
> fact,
> > > they've never been polished; the last C utility I wrote was 4 years
> ago). I
> > > have gcc 2.95.2, the "ming win" distribution for windows. The program
> won't
> > > compile; seems that I don't have the include file termios.h. Am I
> missing
> > > something obvious? If I have demonstrated just how clueless I am, don't
> > > spend any real time answering, but if I am missing something obvious and
> > > simple, I would appreciate a quick answer.
> >
> > Unfortunately I am not sure, if it will work with windows, since the
> > console of rebol is allways a window (I think). Since I don't have a
> > Windows computer, I can not try it.
> >
> > (Maybe the option "rebol -w" could help???)
> > If it is possible to run rebol without opening a window and outputting to
> > a standard output stream, you can try to remove the #incluce <termios.h>
> > and all stuff that needs it.
> >
> > Since I am no windows programmer, I don't know if fork() works with
> > windows. (This is the reason, why the program will not work with AmigaOS,
> > too)
> >
> > Maybe someone else can help?
> >
> > CU,
> > Frank
> >
>
> Thanks, Frank, that answers my question. I have not tried REBOL on an
> alternate platform in order to see how it might be different. Thanks!
> --Scott Jones
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.