Results 1 to 3 of 3
How do i run a python script from a C program or shell script?...
- 06-30-2008 #1Just Joined!
- Join Date
- Dec 2007
- Location
- bangalore
- Posts
- 38
to run python script
How do i run a python script from a C program or shell script?
- 06-30-2008 #2
1) Make the first line of the script #! /usr/bin/python
2) Make the file executable: chmod u+x filename.
2) Put it in a directory on your command path, e.g. $HOME/bin."I'm just a little old lady; don't try to dazzle me with jargon!"
- 06-30-2008 #3
If you have python installed, you could also just do: "python youpythonscript.py".


Reply With Quote