June 21, 2016
9 a.m.
So cool. For a command taking some time to execute, can it be make non-blocking for the image? For example when using it from a Seaside server where you need to execute such a command but you do not want to bock all the Seaside sessions. Thanks Hilaire Le 20/06/2016 18:03, Peter Uhnák a écrit :
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'
-- Dr. Geo http://drgeo.eu