~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/underlay/pages/HelpOnInstalling(2f)BasicInstallation/attachments/pythontest.cgi

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
echo Content-Type: text/plain
 
3
echo
 
4
echo "Your web server is running as:"
 
5
id
 
6
echo "CGI scripts work"
 
7
echo "Now we try to invoke Python interpreters and get their versions:"
 
8
echo "Your default version of python is:"
 
9
python -V 2>&1
 
10
echo 
 
11
echo "Available versions of python are:"
 
12
python2.2 -V 2>&1 && which python2.2
 
13
python2.3 -V 2>&1 && which python2.3
 
14
python2.4 -V 2>&1 && which python2.4
 
15
python2.5 -V 2>&1 && which python2.5
 
16
echo "Finished."
 
17