I can run a ruby script via command line via ruby 'name of file'
In that file, I can do `puts "this_and_that_string"
But how do I make a string I put together behave as if I typed them into the command line directly, to execute commands?
e.g. some_function cd \/var\/
within the ruby script to behave as if I typed into the command line:
cd /var