I am currently trying to figure out if it is possible to run multiple commends within one line on a rails console through Unix shell or within a ruby script.
For Example:
exec('echo p = Product.first;b = Billing.first|rails c')
When I tried something similar to the example, it would always try to execute the two commands before launching console.
Hope this make sense and appreciate any help I can get.
Thanks in advance!