Jump to content

wojiaoliming

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by wojiaoliming

  1. To run a Python script, place your .py file in the cgi-bin folder. It is also important to include the shebang line, which in your case would be #!/usr/bin/python3.7 for Tommy.

     

    A simple script looks like:

    #!/usr/bin/python3.7
    
    print("Content-Type: text/html\n")
    print("<h1>Test</h1>")
    

    Hopefully this helps you.

    thanks very much 

    but

    I followed your steps and changed the permissions to 777, but he still doesn't work

    the demo at : http://help.heliohost.org/cgi-bin/test.py

×
×
  • Create New...