How to execute an external process in VisualWorks?

500 Views Asked by At

How do you execute an external process in VisualWorks Smalltalk?

1

There are 1 best solutions below

0
On

Use ExternalProcess fork. e.g. ExternalProcess fork: 'date'..

However, fork will only take one program and the arguments have to be passed separately in an array. If you want a more complex command you can use the shOne: method: ExternalProcess shOne: 'test -d data || mkdir data && cd data'.