How to execute an external process in VisualWorks?

2019-08-01 07:19发布

How do you execute an external process in VisualWorks Smalltalk?

1条回答
Lonely孤独者°
2楼-- · 2019-08-01 08:00

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

查看更多
登录 后发表回答