AbstractOperatingSystem.st
branchjv
changeset 20728 83c74234945e
parent 20727 fb8c5591428b
parent 20676 152dbea0d6d2
child 21024 8734987eb5c7
equal deleted inserted replaced
20727:fb8c5591428b 20728:83c74234945e
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  COPYRIGHT (c) 1988 by Claus Gittinger
     4  COPYRIGHT (c) 1988 by Claus Gittinger
     3 	      All Rights Reserved
     5 	      All Rights Reserved
     4 
     6 
     5  This software is furnished under a license and may be used
     7  This software is furnished under a license and may be used
  1298 	inDirectory:aDirectory
  1300 	inDirectory:aDirectory
  1299 	lineWise:false
  1301 	lineWise:false
  1300 	onError:aBlock
  1302 	onError:aBlock
  1301 
  1303 
  1302     "Modified: / 10.11.1998 / 20:54:37 / cg"
  1304     "Modified: / 10.11.1998 / 20:54:37 / cg"
       
  1305 !
       
  1306 
       
  1307 executeCommand:aCommandString inDirectory:aDirectory showWindow:showWindow
       
  1308     "execute the unix command specified by the argument, aCommandString.
       
  1309      If aCommandString is a String, the commandString is passed to a shell for execution
       
  1310      - see the description of 'sh -c' in your UNIX manual ('cmd.com' in your MSDOS manual).
       
  1311      If aCommandString is an Array, the first element is the command to be executed,
       
  1312      and the other elements are the arguments to the command. No shell is invoked in this case.
       
  1313      Return true if successful, false otherwise."
       
  1314 
       
  1315     ^ self
       
  1316         executeCommand:aCommandString
       
  1317         inputFrom:nil
       
  1318         outputTo:nil
       
  1319         errorTo:nil
       
  1320         auxFrom:nil
       
  1321         environment:nil
       
  1322         inDirectory:aDirectory
       
  1323         lineWise:false
       
  1324         showWindow:showWindow
       
  1325         onError:[:exitStatus| false]
       
  1326 
       
  1327     "Created: / 18-10-2016 / 15:55:29 / cg"
  1303 !
  1328 !
  1304 
  1329 
  1305 executeCommand:aCommandString inputFrom:anInStream outputTo:anOutStream errorTo:anErrStream
  1330 executeCommand:aCommandString inputFrom:anInStream outputTo:anOutStream errorTo:anErrStream
  1306     "execute the unix command specified by the argument, aCommandString.
  1331     "execute the unix command specified by the argument, aCommandString.
  1307      If aCommandString is a String, the commandString is passed to a shell for execution
  1332      If aCommandString is a String, the commandString is passed to a shell for execution