[Cuis-dev] FFI to execute shell command

Gerald Klix cuis.01 at klix.ch
Thu Oct 24 09:03:37 PDT 2024


Hi Hilaire,

What do you mean by "shell command"?
Do you mean a shell-script or one command built into a shell like "cd"?

Of course you should be able to use the clib's  `system` function,
to execute a shell-script, but that would just duplicate the functionality
of OSProcess class>>#command:, provided by the OSProcess package.


HTH,

Gerald



On 10/24/24 4:44 PM, Hilaire Fernandes via Cuis-dev wrote:
> Hi,
>
> Excuse my deep ignorance.
>
> Can FFI be used to execute shell command? Within Pharo I used to do 
> that with a LibC class in UnifiedFFI package.
>
> Thanks
>
> Hilaire
>
>



More information about the Cuis-dev mailing list