ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Pavel Marakhovsky <_troggy_@mtu-net.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] offtopic: troubles with python programming
Date: Wed Apr 11 06:26:04 2001
Message-ID: <20010411061339.78385e69._troggy_@mtu-net.ru> (raw)
In-Reply-To: <Pine.LNX.4.33L.0104101953360.4435-100000@zephyrous.ru>

On Tue, 10 Apr 2001 19:55:24 +0400 (MSD)
Ivan Zakharyaschev <imz@linux.ru.net> wrote:

> 	Hello, Pavel!
> 
> On Tue, 10 Apr 2001, Pavel Marakhovsky wrote:
> 
> > On Tue, 10 Apr 2001 09:40:39 +0400
> > cornet <cornet@zmail.ru> wrote:
> >
> > > > > > Сразу сорри за оффтопик, но спросить не у кого...
> > > > > >
> > > > > > Из книжки "Язык прграммирования Питон" списан пример веб
> > сервера с возможность выполнения cgi
> > > > > > скриптов:
> > > > > >
> > > > > > #hins.py
> > > > > > #!/usr/bin/python
> > > > > > from BaseHTTPServer import HTTPServer
> > > > > > from CGIHTTPServer import CGIHTTPRequestHandler
> > > > > > import os
> > > > > >
> > > > > > os.chdir("/home/unatine/hins/html")
> > > > > > serv=HTTPServer(('',80),CGIHTTPRequestHandler)
> > > > > >
> > > > > > serv.serve_forever()
> > > > > >
> > > > > > в /home/unatine/hins/html лежит index.html и есть каталог
> > cgi-bin в котором лежит скрипт:
> > > > > >
> > > > > > unatine@localhost ~/hins $ ls -l ./*/*
> > > > > > -rw-r--r--    1 unatine  unatine       314 Апр  8 16:44
> > ./html/index.html
> > > > > >
> > > > > > ./html/cgi-bin:
> > > > > > итого 4
> > > > > > -rwxr-xr-x    1 unatine  unatine       764 Апр  8 16:26
> > dict_cgi.py
> 
> > Интересно, а ошибки в CGIHTTPServer.py быть не может?
> 
> А все-таки: что в dict_cgi.py (первая строка правильная?)  и какие права
> на директории, в которых он лежит?

Считайте что первой строки нет, файл начинается с #!/usr/bin/python.
вот права на cgi-bin:
drwxr-xr-x    2 unatine  unatine      4096 Апр  8 16:32 cgi-bin

Эта директория в моем домашнем каталоге...

-- 
WBW, Pavel
e-mail: unatine@narod.ru

The Cho-Arrim workship life and revere those who've experienced it longest.



  reply	other threads:[~2001-04-11  6:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-08 22:12 Pavel Marakhovsky
2001-04-08 23:46 ` Ivan Zakharyaschev
2001-04-09  6:20   ` Pavel Marakhovsky
2001-04-09 11:14 ` cornet
2001-04-09 16:50   ` Alexander Bokovoy
2001-04-09 19:36   ` Pavel Marakhovsky
2001-04-09 22:24     ` Ivan Zakharyaschev
2001-04-09 22:24       ` Ivan Zakharyaschev
2001-04-19 18:01       ` Pavel Marakhovsky
2001-04-10  9:40     ` cornet
2001-04-10 19:05       ` Pavel Marakhovsky
2001-04-10 19:54         ` Ivan Zakharyaschev
2001-04-11  6:26           ` Pavel Marakhovsky [this message]
2001-04-10 19:06       ` Pavel Marakhovsky
2001-04-10 19:42         ` Sergey Vlasov
2001-04-11  6:25           ` Pavel Marakhovsky
2001-04-11  9:37             ` cornet
2001-04-11 18:56               ` Pavel Marakhovsky
2001-04-11 11:19             ` Sergey Vlasov
2001-04-11 18:56               ` Pavel Marakhovsky
2001-04-16  8:37     ` Mikhail Zabaluev
2001-04-16 20:02       ` Pavel Marakhovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010411061339.78385e69._troggy_@mtu-net.ru \
    --to=_troggy_@mtu-net.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git