0
시스템 명령으로 실행되는 명령이 있습니다. 쉘에 전달 된 내용을 기록 할 수 있습니까?Ruby 및 시스템 입력
P. 난 당신이 시스템 명령
command = "whoami" # store the command as string
puts command # print it before you execute it
system(command) # execute it in the shell
"무엇이 통과 되었습니까?" 시스템 커멘드가 돌려주는 결과 – Vapire
쉘에서 호출 할 정확한 문자열 –
명령의 출력을 캡처 하시겠습니까? –