Reputation: 308
Is there any way to run shell commands in Sublime Console just like running Python codes in Sublime Console?
Upvotes: 2
Views: 2445
Reputation: 5554
You could have a look at Glue plugin.
Otherwise you could use the subprocess module from python standard library, like so:
>>> from subprocess import check_output
>>> check_output(['python', '--version'])
Upvotes: 2