If you want to run a shell command from Ruby and capture its stdout, stderr and return status, check out the Open3.capture3 method.
確定! 回上一頁