With OS Process you can run scripts. That should work identical on Mac and Unix systems; probably also Windows, but I haven't tried.
With FFI and Alien you can call C libraries. I have not much experience with those, but normally it should be possible to use them on all platforms. Lukas On 12 December 2010 17:31, Max Leske <[email protected]> wrote: > Hi guys > > I was wondering if it is true that executing a file from within Pharo is > platform dependent. I don't actually need to execute a file; it's more a > theoretical question and I have no idea what the mechanisms are that would be > used. To give you a clearer picture: Imagine you have C, sh, and perl files. > What I'm thinking about is that I would have some data in the image that I > would want to process with the code in one of those files. I would then wait > for the result and process the result in the image. > > So my questions are: is there a platform independent way to execute C, sh or > perl files from Pharo? Does the VM handle the platform dependencies? Are > there any other issues with the idea I described? > > Don't go out of your way to find answers, please. But I'd be happy to hear > your thoughts. > > Cheers, > Max > -- Lukas Renggli www.lukas-renggli.ch
