I have a python program in that I wrote some python code (disk.py). I executed this program using the command python disk.py
in a terminal, it worked.
Now I want to execute it using a shell script.
I have a python program in that I wrote some python code (disk.py). I executed this program using the command Now I want to execute it using a shell script. |
||||
To be able to execute as
|
|||||||||||||||||
|
Shell script should be like:
|
|||
|
./disk.py
(wild guess)? If so, you just need to add a suitable hash-bang, i.e.#!/usr/bin/python
. If you mean some else, you need to clarify what you are talking about. – Faheem Mitha Mar 1 '14 at 9:06