Ruby调用系统命令Call System

一直对ruby调用系统命令有点混淆。现在整理一下:

示例图:

示例图

参考:

Ruby, Difference between exec, system and %x() or Backticks

aliyun