Thanks Torsten,
I've been using socketpair(), fork() and execve() under OS X to launch oz as
a separate process - I'm trying to launch oz from the cocoa front-end,
rather than vice-versa at the moment.

I have a space in the path-name to my oz functor and it seems the module
manager can't parse path names with spaces. This seems to be true even when
using ozengine directly and specifying the file location on the command
line, regardless of escaping the spaces or enclosing the file location in
inverted commas.

E.g.

ozengine dir1/dir2/ozfunctor.ozf  %% runs fine

ozengine dir with spaces/dir1/dir2/ozfunctor.ozf       %% fails, as does
ozengine 'dir with spaces/dir1/dir2/ozfunctor.ozf'
ozengine dir\ with\ spaces/dir1/dir2/ozfunctor.ozf     %% etc

Is there a work-around? The error I get when it fails says

*%********************** Error: module manager ********************

*%***

*%** Could not link module*

*%***

*%** Could not load functor at URL: /Users/Oliver/dir*

*%**--------------------------------------------------------------*

The URL specified broke at the first space.

Thanks,
Oliver.


> From: Torsten Anders <[EMAIL PROTECTED]>
> Subject: Re: generating standalone applications
> To: Mozart users <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="US-ASCII"; delsp=yes; format=flowed
>
> Dear Oliver,
>
> indeed, you have to install Oz first before you can run an Oz program
> (similar to various other languages, e.g., Java).
>
> Also, you can run Oz programs as separate processes which talk to
> other processes via sockets. Sockets are documented in the open
> programming tutorial
>
>    http://www.mozart-oz.org/documentation/op/node10.html
>
> and the reference
>
>    http://www.mozart-oz.org/documentation/system/node54.html
>
> Best
> Torsten
>
> --
> Torsten Anders
> Interdisciplinary Centre for Computer Music Research
> University of Plymouth
> Office: +44-1752-233667
> Private: +44-1752-558917
> http://strasheela.sourceforge.net
> http://www.torsten-anders.de
>
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to