Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3.  
  4. from __future__ import print_function, division
  5.  
  6. print("Content-Type: text/html") # HTML is following.
  7. print() # Blank line, end of headers.
  8.  
  9. print("testing")
  10.  
  11. #!/usr/bin/env python3
  12. # -*- coding: UTF-8 -*-
  13.  
  14. print("Content-Type: text/html") # HTML is following.
  15. print() # Blank line, end of headers.
  16.  
  17. print("testing")
  18.  
  19. env: python3: No such file or directory
  20. Premature end of script headers: test_cgi.py
  21.  
  22. /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  23.  
  24. /usr/bin/python
  25. /usr/bin/python-config
  26. /usr/bin/python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
  27. /usr/bin/python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
  28. /usr/bin/python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
  29. /usr/bin/python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
  30. /usr/bin/python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  31. /usr/bin/python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
  32. /usr/bin/pythonw
  33. /usr/bin/pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
  34. /usr/bin/pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
  35. /usr/bin/pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
  36.  
  37. /usr/local/bin/python3 -> ../Cellar/python3/3.3.3/bin/python3
  38. /usr/local/bin/python3.3 -> ../Cellar/python3/3.3.3/bin/python3.3
  39. /usr/local/bin/python3.3-config -> ../Cellar/python3/3.3.3/bin/python3.3-config
  40. /usr/local/bin/pythonw3.3 -> ../Cellar/python3/3.3.3/bin/pythonw3.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement