#!/usr/bin/python
###################################################################################
# Access arguments entered on the command line
# argv[0] is always the script name
###################################################################################
import sys                              #sys module to accept arguments

print("Content-Type: text/html \n")     #http header with newline char (required)

if len(sys.argv) < 2:                   #name of this script is always provided as argv[0]
    print("Please provide any arguments (space separated) on the command line <br>")
    exit()

print("This script is called " + sys.argv[0] + "<br>")

print("Your arguments are: <br>")
for arg in sys.argv :
    print(arg + '<br>')