changeset 22438 | 7f0d16f4a407 |
parent 22437 | 2eab35976e5e |
child 22439 | 2a098663db2f |
22437:2eab35976e5e | 22438:7f0d16f4a407 |
---|---|
114 in the current directory for a local process" |
114 in the current directory for a local process" |
115 |
115 |
116 ^ self new command:aCommandString. |
116 ^ self new command:aCommandString. |
117 ! |
117 ! |
118 |
118 |
119 command:aCommandString inDirectory:aStringOrFilename |
119 command:aCommandString directory:aStringOrFilename |
120 "return an initialized instance to execute aCommandStirng |
120 "return an initialized instance to execute aCommandStirng |
121 in a directory for a local process" |
121 in a directory for a local process" |
122 |
122 |
123 ^ self new command:aCommandString inDirectory:aStringOrFilename. |
123 ^ self new command:aCommandString directory:aStringOrFilename. |
124 ! |
124 ! |
125 |
125 |
126 new |
126 new |
127 "return an initialized instance for a local process" |
127 "return an initialized instance for a local process" |
128 |
128 |
164 |
164 |
165 "Modified (comment): / 23-02-2017 / 10:56:57 / Maren" |
165 "Modified (comment): / 23-02-2017 / 10:56:57 / Maren" |
166 ! |
166 ! |
167 |
167 |
168 command |
168 command |
169 "return the value of the instance variable 'command' (automatically generated)" |
169 "the OS (shell-) command" |
170 |
170 |
171 ^ command |
171 ^ command |
172 |
172 |
173 "Created: / 10.11.1998 / 21:27:07 / cg" |
173 "Created: / 10.11.1998 / 21:27:07 / cg" |
174 ! |
174 ! |
182 |
182 |
183 command := aStringOrArray. |
183 command := aStringOrArray. |
184 ! |
184 ! |
185 |
185 |
186 command:commandStringArg directory:stringOrFilenameArg |
186 command:commandStringArg directory:stringOrFilenameArg |
187 "set the command to be executed and directory, where to execute. |
|
188 If aStringOrArray is a String, the commandString is passed to a shell for execution |
|
189 - see the description of 'sh -c' in your UNIX manual ('cmd.exe' in your Windows manual). |
|
190 If aCommandString is an Array, the first element is the command to be executed, |
|
191 and the other elements are the arguments to the command. No shell is invoked in this case." |
|
192 |
|
187 command := commandStringArg. |
193 command := commandStringArg. |
188 directory := stringOrFilenameArg. |
194 directory := stringOrFilenameArg. |
189 ! |
195 ! |
190 |
196 |
191 command:commandArg environment:environmentArg directory:directoryArg inStream:inStreamArg outStream:outStreamArg errorStream:errorStreamArg auxStream:auxStreamArg showWindow:showWindowArg lineWise:lineWiseArg |
197 command:commandArg environment:environmentArg directory:directoryArg inStream:inStreamArg outStream:outStreamArg errorStream:errorStreamArg auxStream:auxStreamArg showWindow:showWindowArg lineWise:lineWiseArg |
198 "set the command to be executed & directory, where to execute. |
|
199 and input/output streams. |
|
200 See comments in individual setters for more info" |
|
201 |
|
192 command := commandArg. |
202 command := commandArg. |
193 environment := environmentArg. |
203 environment := environmentArg. |
194 directory := directoryArg. |
204 directory := directoryArg. |
195 inStream := inStreamArg. |
205 inStream := inStreamArg. |
196 outStream := outStreamArg. |
206 outStream := outStreamArg. |
199 showWindow := showWindowArg. |
209 showWindow := showWindowArg. |
200 lineWise := lineWiseArg. |
210 lineWise := lineWiseArg. |
201 ! |
211 ! |
202 |
212 |
203 directory |
213 directory |
204 "return the value of the instance variable 'directory' (automatically generated)" |
214 "the directory where executed" |
205 |
215 |
206 ^ directory |
216 ^ directory |
207 |
217 |
208 "Created: / 10.11.1998 / 21:21:52 / cg" |
218 "Created: / 10.11.1998 / 21:21:52 / cg" |
209 ! |
219 ! |
213 |
223 |
214 directory := aStringOrFilename. |
224 directory := aStringOrFilename. |
215 ! |
225 ! |
216 |
226 |
217 environment |
227 environment |
218 "return the value of the instance variable 'environment' (automatically generated)" |
228 "the shell environment" |
219 |
229 |
220 ^ environment |
230 ^ environment |
221 |
231 |
222 "Created: / 10.11.1998 / 21:26:34 / cg" |
232 "Created: / 10.11.1998 / 21:26:34 / cg" |
223 ! |
233 ! |
227 |
237 |
228 environment := aDictionary. |
238 environment := aDictionary. |
229 ! |
239 ! |
230 |
240 |
231 errorStream |
241 errorStream |
232 "return the value of the instance variable 'errorStream' (automatically generated)" |
|
233 |
|
234 ^ errorStream |
242 ^ errorStream |
235 |
243 |
236 "Created: / 10.11.1998 / 21:26:34 / cg" |
244 "Created: / 10.11.1998 / 21:26:34 / cg" |
237 ! |
245 ! |
238 |
246 |
264 |
272 |
265 "Modified (comment): / 23-02-2017 / 10:53:17 / Maren" |
273 "Modified (comment): / 23-02-2017 / 10:53:17 / Maren" |
266 ! |
274 ! |
267 |
275 |
268 inStream |
276 inStream |
269 "return the value of the instance variable 'inStream' (automatically generated)" |
|
270 |
|
271 ^ inStream |
277 ^ inStream |
272 |
278 |
273 "Created: / 10.11.1998 / 21:26:34 / cg" |
279 "Created: / 10.11.1998 / 21:26:34 / cg" |
274 ! |
280 ! |
275 |
281 |
301 |
307 |
302 newPgrp := aBoolean. |
308 newPgrp := aBoolean. |
303 ! |
309 ! |
304 |
310 |
305 outStream |
311 outStream |
306 "return the value of the instance variable 'outStream' (automatically generated)" |
|
307 |
|
308 ^ outStream |
312 ^ outStream |
309 |
313 |
310 "Created: / 10.11.1998 / 21:26:34 / cg" |
314 "Created: / 10.11.1998 / 21:26:34 / cg" |
311 ! |
315 ! |
312 |
316 |