         
         // read output asynchronously for safe with huge output
         if let outputType = outputType {
-            outPipe.fileHandleForReading.readToEndOfFileInBackgroundAndNotify()
             weak var observer: NSObjectProtocol?
             observer = NotificationCenter.default.addObserver(forName: .NSFileHandleReadToEndOfFileCompletion, object: outPipe.fileHandleForReading, queue: nil) { (note: Notification) in
                 NotificationCenter.default.removeObserver(observer!)

                    writeToConsole(message: error.localizedDescription, scriptName: scriptName)
                }
            }
        }
        
        // execute

 ------------------------------------------------------------------------------
 
 © 2004-2007 nakamuxu
 © 2014-2018 1024jp
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
