equal
deleted
inserted
replaced
1185 "Modified: / 15.7.1997 / 16:03:51 / stefan" |
1185 "Modified: / 15.7.1997 / 16:03:51 / stefan" |
1186 "Modified: / 5.6.1998 / 19:03:51 / cg" |
1186 "Modified: / 5.6.1998 / 19:03:51 / cg" |
1187 "Created: / 12.11.1998 / 14:39:20 / cg" |
1187 "Created: / 12.11.1998 / 14:39:20 / cg" |
1188 ! ! |
1188 ! ! |
1189 |
1189 |
|
1190 |
1190 !AbstractOperatingSystem class methodsFor:'executing OS commands-public'! |
1191 !AbstractOperatingSystem class methodsFor:'executing OS commands-public'! |
1191 |
1192 |
1192 executeCommand:aCommandString |
1193 executeCommand:aCommandString |
1193 "execute the unix command specified by the argument, aCommandString. |
1194 "execute the unix command specified by the argument, aCommandString. |
1194 If aCommandString is a String, the commandString is passed to a shell for execution |
1195 If aCommandString is a String, the commandString is passed to a shell for execution |
1213 |
1214 |
1214 OperatingSystem executeCommand:'sleep 30'. |
1215 OperatingSystem executeCommand:'sleep 30'. |
1215 OperatingSystem executeCommand:'pwd'. |
1216 OperatingSystem executeCommand:'pwd'. |
1216 OperatingSystem executeCommand:'ls -l'. |
1217 OperatingSystem executeCommand:'ls -l'. |
1217 OperatingSystem executeCommand:#('/bin/ls' '-l') outputTo:Transcript. |
1218 OperatingSystem executeCommand:#('/bin/ls' '-l') outputTo:Transcript. |
|
1219 OperatingSystem executeCommand:{OperatingSystem pathOfCommand:'powershell'} outputTo:Transcript. |
|
1220 OperatingSystem executeCommand:{OperatingSystem pathOfCommand:'powershell'. 'dir'} outputTo:Transcript. |
1218 OperatingSystem executeCommand:'invalidCommand'. |
1221 OperatingSystem executeCommand:'invalidCommand'. |
1219 OperatingSystem executeCommand:'rm /tmp/foofoofoofoo'. |
1222 OperatingSystem executeCommand:'rm /tmp/foofoofoofoo'. |
1220 " |
1223 " |
1221 |
1224 |
1222 "msdos: |
1225 "msdos: |
1230 OperatingSystem executeCommand:'dir' |
1233 OperatingSystem executeCommand:'dir' |
1231 OperatingSystem executeCommand:'purge' |
1234 OperatingSystem executeCommand:'purge' |
1232 OperatingSystem executeCommand:'cc foo.c' |
1235 OperatingSystem executeCommand:'cc foo.c' |
1233 " |
1236 " |
1234 |
1237 |
1235 "Modified: / 7.1.1997 / 19:29:55 / stefan" |
1238 "Modified: / 07-01-1997 / 19:29:55 / stefan" |
1236 "Modified: / 10.11.1998 / 20:55:37 / cg" |
1239 "Modified: / 10-11-1998 / 20:55:37 / cg" |
|
1240 "Modified (comment): / 27-03-2019 / 22:36:49 / stefan" |
1237 ! |
1241 ! |
1238 |
1242 |
1239 executeCommand:aCommandString errorTo:errorStream |
1243 executeCommand:aCommandString errorTo:errorStream |
1240 "execute the unix command specified by the argument, aCommandString. |
1244 "execute the unix command specified by the argument, aCommandString. |
1241 If aCommandString is a String, the commandString is passed to a shell for execution |
1245 If aCommandString is a String, the commandString is passed to a shell for execution |