Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hello-world.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess,os
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer

PORT_NUMBER = 80
PORT_NUMBER = 80 #Change this

#This class will handles any incoming request from
#the browser
Expand All @@ -15,6 +15,7 @@ def do_GET(self):
self.end_headers()
# Send the html message
self.wfile.write("*** Python - Hello World ! ***\n")
self.wfile.write("The following is just a tutorial.")
self.wfile.write("WELCOME_MSG : " + os.getenv('WELCOME_MSG', 'undef') )
self.wfile.write("\n")
self.wfile.write("Hostname is : " + subprocess.check_output("uname -n", shell=True))
Expand Down