<p>How do I call shell commands from inside of a Ruby program? How do I then get output from these commands back into Ruby?</p>

I'm definitely not a Ruby expert, but I'll give it a shot:
```
```
$ irb 
system "echo Hi"
Hi
=> true
```
```
You should also be able to do things like:
```
```
cmd = 'ls'
system(cmd)
```
```