2006年07月05日 星期三 13:33
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2959 bytes Desc: not available Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20060705/95760808/smime-0001.bin
2006年07月05日 星期三 19:39
On 7/5/06, netkiller <openunix at 163.com> wrote: > > > > > > 类似下面 > service xxxxxx > { > disable = no > socket_type = stream > protocol = tcp > type = UNLISTED > server = /home/xxx/app_svr.py > port = 2036 > wait = no > user = nobody > instances = 2 > nice = 10 > only_from = localhost > } > 这个python应该怎么写.?? 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也行的。 -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年07月05日 星期三 21:00
你没理解我的意思,我是说如何用python写xinet.d程序. 而不是实现那个结构. limodou wrote: > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >> >> >> 类似下面 >> service xxxxxx >> { >> disable = no >> socket_type = stream >> protocol = tcp >> type = UNLISTED >> server = /home/xxx/app_svr.py >> port = 2036 >> wait = no >> user = nobody >> instances = 2 >> nice = 10 >> only_from = localhost >> } >> 这个python应该怎么写.?? > > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也行的。 > > ------------------------------------------------------------------------ > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月05日 星期三 21:06
On 7/5/06, netkiller <openunix at 163.com> wrote: > > 你没理解我的意思,我是说如何用python写xinet.d程序. > 而不是实现那个结构. > > limodou wrote: > > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> > >> > >> > >> > >> > >> 类似下面 > >> service xxxxxx > >> { > >> disable = no > >> socket_type = stream > >> protocol = tcp > >> type = UNLISTED > >> server = /home/xxx/app_svr.py > >> port = 2036 > >> wait = no > >> user = nobody > >> instances = 2 > >> nice = 10 > >> only_from = localhost > >> } > >> 这个python应该怎么写.?? > > > > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也行的。 > > 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自动启动指定的服务。不过没写过这个东西。 -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年07月05日 星期三 21:14
开发 xinet.d 程序不用你去关心socket,线程,同步等... 你要做的就是用他提供的接口就可以了. limodou wrote: > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> 你没理解我的意思,我是说如何用python写xinet.d程序. >> 而不是实现那个结构. >> >> limodou wrote: >> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >> >> >> >> >> >> >> >> >> 类似下面 >> >> service xxxxxx >> >> { >> >> disable = no >> >> socket_type = stream >> >> protocol = tcp >> >> type = UNLISTED >> >> server = /home/xxx/app_svr.py >> >> port = 2036 >> >> wait = no >> >> user = nobody >> >> instances = 2 >> >> nice = 10 >> >> only_from = localhost >> >> } >> >> 这个python应该怎么写.?? >> > >> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也行 >> 的。 >> > > 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 > 动启动指定的服务。不过没写过这个东西。 > > ------------------------------------------------------------------------ > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月05日 星期三 21:22
好像是xinet.d是来一个请求,启动一个进程去处理. netkiller wrote: > > > 开发 xinet.d 程序不用你去关心socket,线程,同步等... > 你要做的就是用他提供的接口就可以了. > > limodou wrote: >> On 7/5/06, netkiller <openunix at 163.com> wrote: >>> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. >>> 而不是实现那个结构. >>> >>> limodou wrote: >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> 类似下面 >>> >> service xxxxxx >>> >> { >>> >> disable = no >>> >> socket_type = stream >>> >> protocol = tcp >>> >> type = UNLISTED >>> >> server = /home/xxx/app_svr.py >>> >> port = 2036 >>> >> wait = no >>> >> user = nobody >>> >> instances = 2 >>> >> nice = 10 >>> >> only_from = localhost >>> >> } >>> >> 这个python应该怎么写.?? >>> > >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 >>> 行 的。 >>> > >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 >> 动启动指定的服务。不过没写过这个东西。 >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> python-chinese >> Post: send python-chinese at lists.python.cn >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > >
2006年07月06日 星期四 05:44
To netkiller : 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? 如果是这样: ----------------------------------- server = /usr/local/bin/python server_args = /your/script/path/script_name arg1 arg2 arg3 ... ----------------------------------- 具体的,请查看xinetd.conf的man On 7/5/06, netkiller <openunix at 163.com> wrote: > > 好像是xinet.d是来一个请求,启动一个进程去处理. > > netkiller wrote: > > > > > > 开发 xinet.d 程序不用你去关心socket,线程,同步等... > > 你要做的就是用他提供的接口就可以了. > > > > limodou wrote: > >> On 7/5/06, netkiller <openunix at 163.com> wrote: > >>> > >>> 你没理解我的意思,我是说如何用python写xinet.d程序. > >>> 而不是实现那个结构. > >>> > >>> limodou wrote: > >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> 类似下面 > >>> >> service xxxxxx > >>> >> { > >>> >> disable = no > >>> >> socket_type = stream > >>> >> protocol = tcp > >>> >> type = UNLISTED > >>> >> server = /home/xxx/app_svr.py > >>> >> port = 2036 > >>> >> wait = no > >>> >> user = nobody > >>> >> instances = 2 > >>> >> nice = 10 > >>> >> only_from = localhost > >>> >> } > >>> >> 这个python应该怎么写.?? > >>> > > >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 > >>> 行 的。 > >>> > > >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 > >> 动启动指定的服务。不过没写过这个东西。 > >> > >> ------------------------------------------------------------------------ > >> > >> _______________________________________________ > >> python-chinese > >> Post: send python-chinese at lists.python.cn > >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese >
2006年07月06日 星期四 09:35
我是说如何写子"/home/xxx/app_svr.py" 程序. 都给理解成了 service 配置文件. >> >>> >> service xxxxxx >> >>> >> { >> >>> >> disable = no >> >>> >> socket_type = stream >> >>> >> protocol = tcp >> >>> >> type = UNLISTED >> >>> >> server = /home/xxx/app_svr.py >> >>> >> port = 2036 >> >>> >> wait = no >> >>> >> user = nobody >> >>> >> instances = 2 >> >>> >> nice = 10 >> >>> >> only_from = localhost >> >>> >> } ----- Original Message ----- From: "shhgs" <shhgs.efhilt at gmail.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 06, 2006 5:44 AM Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > To netkiller : > > 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 > > 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? > > 如果是这样: > ----------------------------------- > server = /usr/local/bin/python > server_args = /your/script/path/script_name arg1 arg2 arg3 ... > ----------------------------------- > > 具体的,请查看xinetd.conf的man > > > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> 好像是xinet.d是来一个请求,启动一个进程去处理. >> >> netkiller wrote: >> > >> > >> > 开发 xinet.d 程序不用你去关心socket,线程,同步等... >> > 你要做的就是用他提供的接口就可以了. >> > >> > limodou wrote: >> >> On 7/5/06, netkiller <openunix at 163.com> wrote: >> >>> >> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. >> >>> 而不是实现那个结构. >> >>> >> >>> limodou wrote: >> >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> 类似下面 >> >>> >> service xxxxxx >> >>> >> { >> >>> >> disable = no >> >>> >> socket_type = stream >> >>> >> protocol = tcp >> >>> >> type = UNLISTED >> >>> >> server = /home/xxx/app_svr.py >> >>> >> port = 2036 >> >>> >> wait = no >> >>> >> user = nobody >> >>> >> instances = 2 >> >>> >> nice = 10 >> >>> >> only_from = localhost >> >>> >> } >> >>> >> 这个python应该怎么写.?? >> >>> > >> >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 >> >>> 行 的。 >> >>> > >> >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 >> >> 动启动指定的服务。不过没写过这个东西。 >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> >> python-chinese >> >> Post: send python-chinese at lists.python.cn >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> Unsubscribe: send unsubscribe to >> >> python-chinese-request at lists.python.cn >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > >> > >> > _______________________________________________ >> > python-chinese >> > Post: send python-chinese at lists.python.cn >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn >> > Unsubscribe: send unsubscribe to >> > python-chinese-request at lists.python.cn >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > >> > >> > >> >> >> _______________________________________________ >> python-chinese >> Post: send python-chinese at lists.python.cn >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > -------------------------------------------------------------------------------- > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月06日 星期四 10:13
哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 是不是问怎样写daemon?找python cookbook,里面有源代码。 On 7/5/06, netkiller <openunix at 163.com> wrote: > > 我是说如何写子"/home/xxx/app_svr.py" 程序. 都给理解成了 service 配置文件. > > > > >> >>> >> service xxxxxx > >> >>> >> { > >> >>> >> disable = no > >> >>> >> socket_type = stream > >> >>> >> protocol = tcp > >> >>> >> type = UNLISTED > >> >>> >> server = /home/xxx/app_svr.py > >> >>> >> port = 2036 > >> >>> >> wait = no > >> >>> >> user = nobody > >> >>> >> instances = 2 > >> >>> >> nice = 10 > >> >>> >> only_from = localhost > >> >>> >> } > > > ----- Original Message ----- > From: "shhgs" <shhgs.efhilt at gmail.com> > To: <python-chinese at lists.python.cn> > Sent: Thursday, July 06, 2006 5:44 AM > Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > > > > To netkiller : > > > > 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 > > > > 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? > > > > 如果是这样: > > ----------------------------------- > > server = /usr/local/bin/python > > server_args = /your/script/path/script_name arg1 arg2 arg3 ... > > ----------------------------------- > > > > 具体的,请查看xinetd.conf的man > > > > > > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> > >> 好像是xinet.d是来一个请求,启动一个进程去处理. > >> > >> netkiller wrote: > >> > > >> > > >> > 开发 xinet.d 程序不用你去关心socket,线程,同步等... > >> > 你要做的就是用他提供的接口就可以了. > >> > > >> > limodou wrote: > >> >> On 7/5/06, netkiller <openunix at 163.com> wrote: > >> >>> > >> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. > >> >>> 而不是实现那个结构. > >> >>> > >> >>> limodou wrote: > >> >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> 类似下面 > >> >>> >> service xxxxxx > >> >>> >> { > >> >>> >> disable = no > >> >>> >> socket_type = stream > >> >>> >> protocol = tcp > >> >>> >> type = UNLISTED > >> >>> >> server = /home/xxx/app_svr.py > >> >>> >> port = 2036 > >> >>> >> wait = no > >> >>> >> user = nobody > >> >>> >> instances = 2 > >> >>> >> nice = 10 > >> >>> >> only_from = localhost > >> >>> >> } > >> >>> >> 这个python应该怎么写.?? > >> >>> > > >> >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 > >> >>> 行 的。 > >> >>> > > >> >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 > >> >> 动启动指定的服务。不过没写过这个东西。 > >> >> > >> >> ------------------------------------------------------------------------ > >> >> > >> >> _______________________________________________ > >> >> python-chinese > >> >> Post: send python-chinese at lists.python.cn > >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> >> Unsubscribe: send unsubscribe to > >> >> python-chinese-request at lists.python.cn > >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > > >> > > >> > _______________________________________________ > >> > python-chinese > >> > Post: send python-chinese at lists.python.cn > >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> > Unsubscribe: send unsubscribe to > >> > python-chinese-request at lists.python.cn > >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > > >> > > >> > > >> > >> > >> _______________________________________________ > >> python-chinese > >> Post: send python-chinese at lists.python.cn > >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > > > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese >
2006年07月06日 星期四 10:39
对就是写.daemon.我用fork实现过..后来看到xinetd.也挺好玩.就想做个试验.. > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 不管他干什么.只要能启动就可以.就是想看看例子:) ----- Original Message ----- From: "shhgs" <shhgs.efhilt at gmail.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 06, 2006 10:13 AM Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 > > 是不是问怎样写daemon?找python cookbook,里面有源代码。 > > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> 我是说如何写子"/home/xxx/app_svr.py" 程序. 都给理解成了 service 配置文件. >> >> >> >> >> >>> >> service xxxxxx >> >> >>> >> { >> >> >>> >> disable = no >> >> >>> >> socket_type = stream >> >> >>> >> protocol = tcp >> >> >>> >> type = UNLISTED >> >> >>> >> server = /home/xxx/app_svr.py >> >> >>> >> port = 2036 >> >> >>> >> wait = no >> >> >>> >> user = nobody >> >> >>> >> instances = 2 >> >> >>> >> nice = 10 >> >> >>> >> only_from = localhost >> >> >>> >> } >> >> >> ----- Original Message ----- >> From: "shhgs" <shhgs.efhilt at gmail.com> >> To: <python-chinese at lists.python.cn> >> Sent: Thursday, July 06, 2006 5:44 AM >> Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. >> >> >> > To netkiller : >> > >> > 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 >> > >> > 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? >> > >> > 如果是这样: >> > ----------------------------------- >> > server = /usr/local/bin/python >> > server_args = /your/script/path/script_name arg1 arg2 arg3 ... >> > ----------------------------------- >> > >> > 具体的,请查看xinetd.conf的man >> > >> > >> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >> 好像是xinet.d是来一个请求,启动一个进程去处理. >> >> >> >> netkiller wrote: >> >> > >> >> > >> >> > 开发 xinet.d 程序不用你去关心socket,线程,同步等... >> >> > 你要做的就是用他提供的接口就可以了. >> >> > >> >> > limodou wrote: >> >> >> On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >>> >> >> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. >> >> >>> 而不是实现那个结构. >> >> >>> >> >> >>> limodou wrote: >> >> >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> 类似下面 >> >> >>> >> service xxxxxx >> >> >>> >> { >> >> >>> >> disable = no >> >> >>> >> socket_type = stream >> >> >>> >> protocol = tcp >> >> >>> >> type = UNLISTED >> >> >>> >> server = /home/xxx/app_svr.py >> >> >>> >> port = 2036 >> >> >>> >> wait = no >> >> >>> >> user = nobody >> >> >>> >> instances = 2 >> >> >>> >> nice = 10 >> >> >>> >> only_from = localhost >> >> >>> >> } >> >> >>> >> 这个python应该怎么写.?? >> >> >>> > >> >> >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 >> >> >>> > >> >> >>> 行 的。 >> >> >>> > >> >> >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 >> >> >> >> >> >> 动启动指定的服务。不过没写过这个东西。 >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> >> >> _______________________________________________ >> >> >> python-chinese >> >> >> Post: send python-chinese at lists.python.cn >> >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> >> Unsubscribe: send unsubscribe to >> >> >> python-chinese-request at lists.python.cn >> >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> > >> >> > >> >> > _______________________________________________ >> >> > python-chinese >> >> > Post: send python-chinese at lists.python.cn >> >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> > Unsubscribe: send unsubscribe to >> >> > python-chinese-request at lists.python.cn >> >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> > >> >> > >> >> > >> >> >> >> >> >> _______________________________________________ >> >> python-chinese >> >> Post: send python-chinese at lists.python.cn >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> Unsubscribe: send unsubscribe to >> >> python-chinese-request at lists.python.cn >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >> >> -------------------------------------------------------------------------------- >> >> >> > _______________________________________________ >> > python-chinese >> > Post: send python-chinese at lists.python.cn >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn >> > Unsubscribe: send unsubscribe to >> > python-chinese-request at lists.python.cn >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> >> _______________________________________________ >> python-chinese >> Post: send python-chinese at lists.python.cn >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > -------------------------------------------------------------------------------- > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月06日 星期四 10:50
没写过,不过你把fork实现的东西按照我说的样子配置一下,应该可以成功 On 7/5/06, netkiller <openunix at 163.com> wrote: > > 对就是写.daemon.我用fork实现过..后来看到xinetd.也挺好玩.就想做个试验.. > > > > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 > > 不管他干什么.只要能启动就可以.就是想看看例子:) > > ----- Original Message ----- > From: "shhgs" <shhgs.efhilt at gmail.com> > To: <python-chinese at lists.python.cn> > Sent: Thursday, July 06, 2006 10:13 AM > Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > > > > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 > > > > 是不是问怎样写daemon?找python cookbook,里面有源代码。 > > > > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> > >> 我是说如何写子"/home/xxx/app_svr.py" 程序. 都给理解成了 service 配置文件. > >> > >> > >> > >> >> >>> >> service xxxxxx > >> >> >>> >> { > >> >> >>> >> disable = no > >> >> >>> >> socket_type = stream > >> >> >>> >> protocol = tcp > >> >> >>> >> type = UNLISTED > >> >> >>> >> server = /home/xxx/app_svr.py > >> >> >>> >> port = 2036 > >> >> >>> >> wait = no > >> >> >>> >> user = nobody > >> >> >>> >> instances = 2 > >> >> >>> >> nice = 10 > >> >> >>> >> only_from = localhost > >> >> >>> >> } > >> > >> > >> ----- Original Message ----- > >> From: "shhgs" <shhgs.efhilt at gmail.com> > >> To: <python-chinese at lists.python.cn> > >> Sent: Thursday, July 06, 2006 5:44 AM > >> Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > >> > >> > >> > To netkiller : > >> > > >> > 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 > >> > > >> > 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? > >> > > >> > 如果是这样: > >> > ----------------------------------- > >> > server = /usr/local/bin/python > >> > server_args = /your/script/path/script_name arg1 arg2 arg3 ... > >> > ----------------------------------- > >> > > >> > 具体的,请查看xinetd.conf的man > >> > > >> > > >> > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> >> > >> >> 好像是xinet.d是来一个请求,启动一个进程去处理. > >> >> > >> >> netkiller wrote: > >> >> > > >> >> > > >> >> > 开发 xinet.d 程序不用你去关心socket,线程,同步等... > >> >> > 你要做的就是用他提供的接口就可以了. > >> >> > > >> >> > limodou wrote: > >> >> >> On 7/5/06, netkiller <openunix at 163.com> wrote: > >> >> >>> > >> >> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. > >> >> >>> 而不是实现那个结构. > >> >> >>> > >> >> >>> limodou wrote: > >> >> >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> > >> >> >>> >> 类似下面 > >> >> >>> >> service xxxxxx > >> >> >>> >> { > >> >> >>> >> disable = no > >> >> >>> >> socket_type = stream > >> >> >>> >> protocol = tcp > >> >> >>> >> type = UNLISTED > >> >> >>> >> server = /home/xxx/app_svr.py > >> >> >>> >> port = 2036 > >> >> >>> >> wait = no > >> >> >>> >> user = nobody > >> >> >>> >> instances = 2 > >> >> >>> >> nice = 10 > >> >> >>> >> only_from = localhost > >> >> >>> >> } > >> >> >>> >> 这个python应该怎么写.?? > >> >> >>> > > >> >> >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 > >> >> >>> > > >> >> >>> 行 的。 > >> >> >>> > > >> >> >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 > >> >> >> > >> >> >> 动启动指定的服务。不过没写过这个东西。 > >> >> >> > >> >> >> ------------------------------------------------------------------------ > >> >> >> > >> >> >> _______________________________________________ > >> >> >> python-chinese > >> >> >> Post: send python-chinese at lists.python.cn > >> >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> >> >> Unsubscribe: send unsubscribe to > >> >> >> python-chinese-request at lists.python.cn > >> >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > python-chinese > >> >> > Post: send python-chinese at lists.python.cn > >> >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> >> > Unsubscribe: send unsubscribe to > >> >> > python-chinese-request at lists.python.cn > >> >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> >> > > >> >> > > >> >> > > >> >> > >> >> > >> >> _______________________________________________ > >> >> python-chinese > >> >> Post: send python-chinese at lists.python.cn > >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> >> Unsubscribe: send unsubscribe to > >> >> python-chinese-request at lists.python.cn > >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> >> > >> > > >> > >> > >> -------------------------------------------------------------------------------- > >> > >> > >> > _______________________________________________ > >> > python-chinese > >> > Post: send python-chinese at lists.python.cn > >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> > Unsubscribe: send unsubscribe to > >> > python-chinese-request at lists.python.cn > >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > >> > >> > >> _______________________________________________ > >> python-chinese > >> Post: send python-chinese at lists.python.cn > >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > > > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese >
2006年07月06日 星期四 10:56
好的..我还得搞个linux 我们公司连VMware都不让用..:( 这几天比较清松.给老美做项目,它们什么独立日吧.放假,所以我们也没什么任务.所以这几天在列表上很活动:),过几天就没太多时间了. ----- Original Message ----- From: "shhgs" <shhgs.efhilt at gmail.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 06, 2006 10:50 AM Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. > 没写过,不过你把fork实现的东西按照我说的样子配置一下,应该可以成功 > > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> 对就是写.daemon.我用fork实现过..后来看到xinetd.也挺好玩.就想做个试验.. >> >> >> >> > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 >> >> 不管他干什么.只要能启动就可以.就是想看看例子:) >> >> ----- Original Message ----- >> From: "shhgs" <shhgs.efhilt at gmail.com> >> To: <python-chinese at lists.python.cn> >> Sent: Thursday, July 06, 2006 10:13 AM >> Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. >> >> >> > 哈哈,谁知道你的/home/xxx/app_srv.py要干什么。 >> > >> > 是不是问怎样写daemon?找python cookbook,里面有源代码。 >> > >> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >> 我是说如何写子"/home/xxx/app_svr.py" 程序. 都给理解成了 service >> >> 配置文件. >> >> >> >> >> >> >> >> >> >>> >> service xxxxxx >> >> >> >>> >> { >> >> >> >>> >> disable = no >> >> >> >>> >> socket_type = stream >> >> >> >>> >> protocol = tcp >> >> >> >>> >> type = UNLISTED >> >> >> >>> >> server = /home/xxx/app_svr.py >> >> >> >>> >> port = 2036 >> >> >> >>> >> wait = no >> >> >> >>> >> user = nobody >> >> >> >>> >> instances = 2 >> >> >> >>> >> nice = 10 >> >> >> >>> >> only_from = localhost >> >> >> >>> >> } >> >> >> >> >> >> ----- Original Message ----- >> >> From: "shhgs" <shhgs.efhilt at gmail.com> >> >> To: <python-chinese at lists.python.cn> >> >> Sent: Thursday, July 06, 2006 5:44 AM >> >> Subject: Re: [python-chinese] Fw: xinetd.d 管理python谁做过.给点例子. >> >> >> >> >> >> > To netkiller : >> >> > >> >> > 首先,写完信之后请先读一遍。把意思表达清楚了,同时不要有病句(另一封信里病句连篇)。 >> >> > >> >> > 按照我的理解,你写了一个python的程序,想让xinetd来帮着启动,想问一下怎么编写xinetd的配置文件,对不对? >> >> > >> >> > 如果是这样: >> >> > ----------------------------------- >> >> > server = /usr/local/bin/python >> >> > server_args = /your/script/path/script_name arg1 arg2 arg3 ... >> >> > ----------------------------------- >> >> > >> >> > 具体的,请查看xinetd.conf的man >> >> > >> >> > >> >> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >> >> >> 好像是xinet.d是来一个请求,启动一个进程去处理. >> >> >> >> >> >> netkiller wrote: >> >> >> > >> >> >> > >> >> >> > 开发 xinet.d 程序不用你去关心socket,线程,同步等... >> >> >> > 你要做的就是用他提供的接口就可以了. >> >> >> > >> >> >> > limodou wrote: >> >> >> >> On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >>> >> >> >> >>> 你没理解我的意思,我是说如何用python写xinet.d程序. >> >> >> >>> 而不是实现那个结构. >> >> >> >>> >> >> >> >>> limodou wrote: >> >> >> >>> > On 7/5/06, netkiller <openunix at 163.com> wrote: >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> 类似下面 >> >> >> >>> >> service xxxxxx >> >> >> >>> >> { >> >> >> >>> >> disable = no >> >> >> >>> >> socket_type = stream >> >> >> >>> >> protocol = tcp >> >> >> >>> >> type = UNLISTED >> >> >> >>> >> server = /home/xxx/app_svr.py >> >> >> >>> >> port = 2036 >> >> >> >>> >> wait = no >> >> >> >>> >> user = nobody >> >> >> >>> >> instances = 2 >> >> >> >>> >> nice = 10 >> >> >> >>> >> only_from = localhost >> >> >> >>> >> } >> >> >> >>> >> 这个python应该怎么写.?? >> >> >> >>> > >> >> >> >>> > 如果无序可以使用字典,有序可以使用list或tuple就行了。做成一个类也 >> >> >> >>> > >> >> >> >>> 行 的。 >> >> >> >>> > >> >> >> >> 哦。不清楚。不过xinet.d好象就是一个通用的server服务器。当有请求时,自 >> >> >> >> >> >> >> >> >> >> >> >> 动启动指定的服务。不过没写过这个东西。 >> >> >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> >> python-chinese >> >> >> >> Post: send python-chinese at lists.python.cn >> >> >> >> Subscribe: send subscribe to >> >> >> >> python-chinese-request at lists.python.cn >> >> >> >> Unsubscribe: send unsubscribe to >> >> >> >> python-chinese-request at lists.python.cn >> >> >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >> >> > >> >> >> > _______________________________________________ >> >> >> > python-chinese >> >> >> > Post: send python-chinese at lists.python.cn >> >> >> > Subscribe: send subscribe to >> >> >> > python-chinese-request at lists.python.cn >> >> >> > Unsubscribe: send unsubscribe to >> >> >> > python-chinese-request at lists.python.cn >> >> >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> python-chinese >> >> >> Post: send python-chinese at lists.python.cn >> >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> >> Unsubscribe: send unsubscribe to >> >> >> python-chinese-request at lists.python.cn >> >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> >> >> > >> >> >> >> >> >> -------------------------------------------------------------------------------- >> >> >> >> >> >> > _______________________________________________ >> >> > python-chinese >> >> > Post: send python-chinese at lists.python.cn >> >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> > Unsubscribe: send unsubscribe to >> >> > python-chinese-request at lists.python.cn >> >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> >> >> >> >> >> _______________________________________________ >> >> python-chinese >> >> Post: send python-chinese at lists.python.cn >> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> >> Unsubscribe: send unsubscribe to >> >> python-chinese-request at lists.python.cn >> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >> >> -------------------------------------------------------------------------------- >> >> >> > _______________________________________________ >> > python-chinese >> > Post: send python-chinese at lists.python.cn >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn >> > Unsubscribe: send unsubscribe to >> > python-chinese-request at lists.python.cn >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese >> >> >> >> _______________________________________________ >> python-chinese >> Post: send python-chinese at lists.python.cn >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > -------------------------------------------------------------------------------- > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月06日 星期四 14:41
On 7/5/06, netkiller <openunix at 163.com> wrote: > > > > 类似下面 > > service xxxxxx > { > disable = no > socket_type = stream > protocol = tcp > type = UNLISTED > server = /home/xxx/app_svr.py > port = 2036 > wait = no > user = nobody > instances = 2 > nice = 10 > only_from = localhost > } > > 这个python应该怎么写.?? > > Python daemon/进程管理用 supervisor比较方便 http://www.plope.com/software/supervisor/ 介绍:http://ivory.idyll.org/articles/basic-supervisor.html -- simple is good http://brucewang.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/8793bdb3/attachment.htm
2006年07月07日 星期五 05:58
这个supervisor我用过,是qmail点名要装的,感觉万分不爽。个人建议,不要使用。 On 7/6/06, Bruce Wang <number5 at gmail.com> wrote: > > > > On 7/5/06, netkiller <openunix at 163.com> wrote: > > > > > > > > > > > > > > 类似下面 > > service xxxxxx > > { > > disable = no > > socket_type = stream > > protocol = tcp > > type = UNLISTED > > server = /home/xxx/app_svr.py > > port = 2036 > > > > wait = no > > user = nobody > > instances = 2 > > nice = 10 > > only_from = localhost > > } > > 这个python应该怎么写.?? > > > > > Python daemon/进程管理用 supervisor比较方便 > > http://www.plope.com/software/supervisor/ > > 介绍:http://ivory.idyll.org/articles/basic-supervisor.html > > > > > > -- > simple is good > http://brucewang.net > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to > python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request at lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > >
2006年07月18日 星期二 14:04
On 7/7/06, shhgs <shhgs.efhilt at gmail.com> wrote: > 这个supervisor我用过,是qmail点名要装的,感觉万分不爽。个人建议,不要使用。 > > 这个是supervisor[1], 和qmail 没关系,qmail用的是djb的daemontools[2], 看清楚了 [1] http://www.plope.com/software/supervisor/ [2] http://cr.yp.to/daemontools.html -- simple is good http://brucewang.net
2006年07月19日 星期三 06:13
看错了。 On 7/18/06, Bruce Wang <number5 at gmail.com> wrote: > On 7/7/06, shhgs <shhgs.efhilt at gmail.com> wrote: > > 这个supervisor我用过,是qmail点名要装的,感觉万分不爽。个人建议,不要使用。 > > > > > > 这个是supervisor[1], 和qmail 没关系,qmail用的是djb的daemontools[2], 看清楚了 > > [1] http://www.plope.com/software/supervisor/ > [2] http://cr.yp.to/daemontools.html > > -- > simple is good > http://brucewang.net > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > >
Zeuux © 2025
京ICP备05028076号