webget install ?

Gerhard Häring gh_pythonlist at gmx.de
Sat Jan 5 19:32:34 EST 2002
Le 06/01/02 à 00:03, Nigel Hewett écrivit:
>       Can anyone assist with the webget python script install on a linux box
> 
>       INSTALLING
> 
>       Webget depends on Python.  It can be obtained from
> <URI:http://www.python.org/>.  This README assumes Python is installed and
> working on your system.
> 
>               "Python is installed /usr/bin/python"
> 
>       * Place the file backend.py at a place where it can be called by the
> system's cron.
> 
>               "Not sure where to place this file?"

Doesn't really matter, for example /usr/local/bin

> 
>       * Place the file frontend.py in a directory where it can be accessed
> remotely as a CGI-script.

In the cgi-bin directory of your webserver (can most probably be found
somewhere under /usr/local or /var).

>               "frontend.py edited to point to /usr/bin/python and extension
> changed to cgi chmod to 0755 and permission as admin placed in
> site1\web\cgi-bin"
> 
>       * Place the file core.py at a place where it can be read by the uid(s)
> who will run backend.py and frontend.py
> 
>               "again where should this be placed"
> 
>       * Configure your webserver to see frontend.py as a CGI-script (with
> Apache you would place ``AddHandler cgi-script py'' in your .htaccess)
> 
>               "This is not required as I named em cgi? I hope"

Yes.

> 
>       * Setup your system's cron to run backend.py at a regular interval
> 
>               "again another blank look on my face"

man crontab

crontab -e

Then insert something like:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin
0-59/5 * * * *     /usr/local/bin/backend.py >/dev/null

This will run /usr/local/bin/backend.py every five minutes. I don't know
what a suitable interval is for your purposes because I never used the
program mentioned.

> [snip, snip]

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list