Monday, February 7, 2011

Executable Python Programs

$ chmod a+x
$ ./
Hello World
First, we have to give the program executable permission using the chmod command then run the source program.
The chmod command is used here to change the mode of the file by giving execute permission to all users of the system. Then, we execute the program directly by specifying the location of the source file. We use the ./ to indicate that the program is located in the current directory.

No comments:

Post a Comment