Solar graphic           



ARCHIVES

Linux

SUSE Linux

KNOPPIX

Msft HOWTO

Troubleshooting

Install/Uninstall

Security

XML/XHTML

XML with CSS

DTD from XML

Fortran

Ruby

Javascript

Tclkit

Frames & Printing

CatNap



Valid HTML 4.0!

Python Scripts

Let's start out with the Python interpreter. On a Red Hat 8.0 Linux installation, the interpreter is located in /usr/bin/. You reach the interpreter from the Bash shell:
[George@localhost bin]$ python2.2
From here, you can try commands from Guido's tutorial and get instant feedback on errors.

For a more recent Linux distribution (Novell Desktop), the Python interpreter is at python2.3

Python scripts require a bit more work. Vikram Vaswani's illustrative script eyes.py looks like this on my Linux computer:
#!/usr/bin/python2.3
print "Snake Eyes"
Executable privileges were set by
$ chmod +x eyes.py
Using Novell Linux, the script was executed from bash:

$ /usr/bin/python2.3 eyes.py


June 29, 2005