1) you can fork in the program you are launching 2) you can fork in the command you are launching⦠just like a regular shell (because that's what system() does) e.g. MyObject new system: '{ sleep 5; touch /tmp/test.txt; } &' On Tue, Jun 21, 2016 at 11:00 AM, Hilaire <hilaire@drgeo.eu> wrote:
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