You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+48-43
Original file line number
Diff line number
Diff line change
@@ -6,62 +6,67 @@ OSSubprocess allows users to spawn Operating System processes from within Pharo
6
6
7
7
An important part of OSSubprocess is how to manage standard streams (`stdin`, `stdout` and `stderr`) and how to provide an API for reading and writing from them at the language level.
8
8
9
-
> It was decided together with Pharo Consortium that as a first step, we should concentrate on making it work on OSX and Unix. If the tool proves to be good and accepted, we could, at a second step, try to add Windows support.
9
+
> It was decided together with Pharo Consortium that as a first step, we should concentrate on making it work on OSX and Unix. If the tool proves to be good and accepted, we could, at a second step, try to add Windows support. If you need Windows support, you can take a look at the https://github.com/pharo-contributions/OSWinSubprocess project.
10
10
11
11
## Table of Contents
12
-
* [Installation](#installation)
13
-
* [Getting Started](#getting-started)
14
-
* [API Reference](#api-reference)
15
-
* [Child exit status](#child-exit-status)
16
-
* [OSSVMProcess and it's child watcher](#ossvmprocess-and-its-child-watcher)
17
-
* [Accessing child status and interpreting it](#accessing-child-status-and-interpreting-it)
18
-
* [Streams management](#streams-management)
19
-
* [Handling pipes within Pharo](#handling-pipes-within-pharo)
20
-
* [Regular files vs pipes](#regular-files-vs-pipes)
> Important2: If you are installing under Linux, then you must use a threaded heartbeat VM (not the itimer one). For Pharo 5.0 and 6.0 you can search for "cog_linux32x86_pharo.cog.spur_XXXXXXXXXXXX.tar.gz" i32 [Pharo static file server](http://files.pharo.org/vm/pharo-spur32/linux/). Since Pharo 7.0, threaded heartbeat VM has become the default installation, so you shouldn't have to explicitly download a specific VM.
61
60
62
-
> Important: Do not load OSProcess project in the same image of OSSubprocess because the latter won't work.
61
+
### Pharo 9.0 or above
62
+
You need to use the `master` branch or a version `> v1.3.0` (API changes).
63
63
64
-
> Important2: If you are installing under Linux, then you must use a threaded heartbeat VM (not the itimer one). For Pharo 5.0 and 6.0 you can search for "cog_linux32x86_pharo.cog.spur_XXXXXXXXXXXX.tar.gz" i32 [Pharo static file server](http://files.pharo.org/vm/pharo-spur32/linux/). Since Pharo 7.0, threaded heartbeat VM has become the default installation, so you shouldn't have to explicitly download a specific VM.
OSSubprocess is quite easy to use but depending on the user needs, there are different parts of the API that could be used. We start with a basic example and later we show more complicated scenarios.
0 commit comments