You can use FFI; just create an object with a method…

MyObject>>system: command
"Perform OS system() call."

^ self ffiCall: #(int system #(char * command)) module: LibC


And then you can do something like

MyObject new system: 'ln -s /tmp/source /tmp/target'

On Mon, Jun 20, 2016 at 5:57 PM, Thibault ARLOING <
thibault.arlo...@hotmail.fr> wrote:

> Yes, I know but I want to use only Pharo classes because I don't want to
> add a dependency to OSSubProcess in my program
>
>
> thanks anyway for your answer
>
>
> Thibault
>
>
> ------------------------------
> *De :* Pharo-users <pharo-users-boun...@lists.pharo.org> de la part de
> Hilaire <hila...@drgeo.eu>
> *Envoyé :* lundi 20 juin 2016 17:21
> *À :* pharo-users@lists.pharo.org
> *Objet :* Re: [Pharo-users] Symbolic links in Pharo
>
> I guess you can do it with OSSubProcess shell command
>
> Hilaire
> --
> Dr. Geo
> http://drgeo.eu
> GNU Dr. Geo, be a geometer! <http://drgeo.eu/>
> drgeo.eu
> Be a Geometer! Dr. Geo, a software to design & manipulate interactive
> geometric sketches. It helps kids to explore geometry. Distributed with its
> source code it is ...
>
>
>
>

Reply via email to