equal
deleted
inserted
replaced
766 " |
766 " |
767 PipeStream outputFromCommand:'ls -l' |
767 PipeStream outputFromCommand:'ls -l' |
768 " |
768 " |
769 |
769 |
770 "Modified (comment): / 31-05-2018 / 08:56:06 / Claus Gittinger" |
770 "Modified (comment): / 31-05-2018 / 08:56:06 / Claus Gittinger" |
|
771 ! |
|
772 |
|
773 outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream |
|
774 "open a pipe reading from aCommand and return the complete output as a string. |
|
775 If the command cannot be executed, return nil. |
|
776 The command will be executed in smalltalk's current directory. |
|
777 errorDisposition may be a stream or one of #discard, #inline or #stderr (default). |
|
778 #discard causes stderr to be discarded (/dev/null), |
|
779 #inline causes it to be merged into the PipeStream and |
|
780 #stderr causes it to be written to smalltalk's own stderr. |
|
781 a stream causes stderr to be sent to that stream (internal or external) |
|
782 Nil is treated like #stderr" |
|
783 |
|
784 ^ self outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream inDirectory:nil |
|
785 |
|
786 "Created: / 25-09-2018 / 10:32:49 / Claus Gittinger" |
771 ! |
787 ! |
772 |
788 |
773 outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream inDirectory:aDirectoryOrNil |
789 outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream inDirectory:aDirectoryOrNil |
774 "open a pipe reading from aCommand and return the complete output as a string. |
790 "open a pipe reading from aCommand and return the complete output as a string. |
775 If the command cannot be executed, return nil. |
791 If the command cannot be executed, return nil. |