Access Linux terminal in Python or Ruby on Rails
h
K_log (4)

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 (84) [earned 5 cycles]
View Answer
replitcode (108)

@K_log there's this... but it only works in pycharm...

os.system("gnome-terminal -e 'bash -c \"sudo apt-get update; exec bash\"'")