Access Linux terminal in Python or Ruby on Rails

Is it possible to get to the command prompt in Python or Ruby on Rails? For python, it seems that it will only run the python terminal and for Ruby on Rails, it either auto starts the server or wont let you run commands which is a problem because I dont know of another way to generate things in Rails.

You are viewing a single comment. View All
Answered by IbraheemRodrigues [earned 5 cycles]
View Answer

@leon332157 I'm trying to be able to run commands like 'rails generate scaffold User' or 'flask db init' but those require a bash terminal, not a python/ruby interpreter. I'm wondering if there is a way to execute such commands without having to write a program to execute the commands in a terminal for me like exec in c.