Tuesday, August 5, 2014

Raspberry Pi - Sh scripts in Python

How to write sh commands in Python

By Importing the library OS in python, we can use the  'sh' scripts in python very easily.

sh script  'a.sh' to echo the 'Hello World'


Python program to use 'a.sh' shell script


Output:

 

No comments: