How do you execute an external process in VisualWorks Smalltalk?
相关问题
- Simple class definition error in smalltalk
- Which Smalltalk object should be passed to a C fun
- Squeak(smalltalk) subSrings ignores empty strings
- Smalltalk variables: why should I declare them?
- How to manage 2d array in Smalltalk?
相关文章
- Implementation Strategies for Object Orientation
- What is the difference between Seaside programmmin
- How to copy several Monticello commits from local
- Smalltalk ReferenceStream has problems with new in
- Is it possible to write shell command within Pharo
- Draw table in Pharo
- Double dispatch in Pharo
- How can I get all the methods in a Protocol?
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 theshOne:
method:ExternalProcess shOne: 'test -d data || mkdir data && cd data'.