configure sys path only if needed to see modules in other directories use unix end-of-line conventions if your server rejects dos format flush output buffers if requiredor to send portions of the reply periodically even if you must use server machine configured by someone elsemost of the machine' conventions should be easy to root out during normal debugging cycle as usualyou should consult the conventions for any machine to which you plan to copy these example files finding python on remote servers one last install pointereven though python doesn' have to be installed on any clients in the context of server-side web applicationit does have to exist on the server machine where your cgi scripts are expected to run if you're running your own server with either the webserver py script we met earlier or an open source server such as apachethis is nonissue but if you are using web server that you did not configure yourselfyou must be sure that python lives on that machine moreoveryou need to find where it is on that machine so that you can specify its path in the #line at the top of your script if you are not sure if or where python lives on your server machinehere are some tipsespecially on unix systemsyou should first assume that python lives in standard place ( /usr/local/bin/python)type python (or which pythonin shell window and see if it works chances are that python already lives on such machines if you have telnet or ssh access on your servera unix find command starting at /usr may help if your server runs linuxyou're probably set to go python ships as standard part of linux distributions these daysand many websites and internet service providers (ispsrun the linux operating systemat such sitespython probably already lives at /usr/bin/python in other environments where you cannot control the server machine yourselfit may be harder to obtain access to an already installed python if soyou can relocate your site to server that does have python installedtalk your isp into installing python on the machine you're trying to useor install python on the server machine yourself if your isp is unsympathetic to your need for python and you are willing to relocate your site to one that isyou can find lists of python-friendly isps by searching the web and if you choose to install python on your server machine yourselfbe sure to check out the python world' support for frozen binaries--with ityou can create single executable program file that contains the entire python interpreteras well as all the standard library modules assuming compatible machinessuch frozen interpreter might be uploaded to your web account by ftp in single stepand it won' require climbing the cgi learning curve