calling external command in python

In this blog post. I’ll talk about boring stuffs about working on shell and python together.

There are few way to execute shell [bash|sh|zsh] command on python probably you searched and used one of them before.

There are few bookmarks which you can check about that topic

The basic example what they are talking about on this pages

It’s okey, it works there is no problem but when you want to send dynamic variable from python to shell command?

On this time our library does not capability to do that.

!!! The code on top off does not work well, because you have to send all arguments like on the first example in python 2.7.

If you want to work with arguments on python2.7 you have to install envoy by using

For more information