-->

How to execute an external process in VisualWorks?

2019-08-01 07:42发布

问题:

How do you execute an external process in VisualWorks Smalltalk?

回答1:

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'.