OSProcess.st
changeset 22436 be3edafe55cc
parent 22199 4638d345471d
child 22437 2eab35976e5e
equal deleted inserted replaced
22435:d7b92e627ed6 22436:be3edafe55cc
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "{ Package: 'stx:libbasic' }"
     3 "{ Package: 'stx:libbasic' }"
     2 
     4 
     3 "{ NameSpace: Smalltalk }"
     5 "{ NameSpace: Smalltalk }"
     4 
     6 
     5 Object subclass:#OSProcess
     7 Object subclass:#OSProcess
   163      - see the description of 'sh -c' in your UNIX manual ('cmd.exe' in your Windows manual).
   165      - see the description of 'sh -c' in your UNIX manual ('cmd.exe' in your Windows manual).
   164      If aCommandString is an Array, the first element is the command to be executed,
   166      If aCommandString is an Array, the first element is the command to be executed,
   165      and the other elements are the arguments to the command. No shell is invoked in this case."
   167      and the other elements are the arguments to the command. No shell is invoked in this case."
   166 
   168 
   167     command := aStringOrArray.
   169     command := aStringOrArray.
       
   170 !
       
   171 
       
   172 command:commandStringArg directory:stringOrFilenameArg
       
   173     command := commandStringArg.
       
   174     directory := stringOrFilenameArg.
   168 !
   175 !
   169 
   176 
   170 command:commandArg environment:environmentArg directory:directoryArg inStream:inStreamArg outStream:outStreamArg errorStream:errorStreamArg auxStream:auxStreamArg showWindow:showWindowArg lineWise:lineWiseArg 
   177 command:commandArg environment:environmentArg directory:directoryArg inStream:inStreamArg outStream:outStreamArg errorStream:errorStreamArg auxStream:auxStreamArg showWindow:showWindowArg lineWise:lineWiseArg 
   171     command := commandArg.
   178     command := commandArg.
   172     environment := environmentArg.
   179     environment := environmentArg.
   185     ^ directory
   192     ^ directory
   186 
   193 
   187     "Created: / 10.11.1998 / 21:21:52 / cg"
   194     "Created: / 10.11.1998 / 21:21:52 / cg"
   188 !
   195 !
   189 
   196 
   190 directory:aString
   197 directory:aStringOrFilename
   191     "set the directory that will be set as the current directory of the command to be executed"
   198     "set the directory that will be set as the current directory of the command to be executed"
   192 
   199 
   193     directory := aString.
   200     directory := aStringOrFilename.
   194 !
   201 !
   195 
   202 
   196 environment
   203 environment
   197     "return the value of the instance variable 'environment' (automatically generated)"
   204     "return the value of the instance variable 'environment' (automatically generated)"
   198 
   205