On 9/21/10, vineet daniel <vineetdan...@gmail.com> wrote: > Hi > > I have succesfully created daemon with python script and as next step > I am trying to give input to that python script daemon from Apache > Logs....here I have got stuck and I have even checked IRC python > channel for solution. Apache is able to call the file but fails to > execute it properly and I get this error continuosly : > > piped log program '/var/www/html/test.py' failed unexpectedly > > How do I rectify the above error and make adjustment to the code so > that it takes input from apache. > >
>From a quick look at the CustomLog docs, it doesn't seem that you need a daemon. Apache will simply run your program and send logging directives to your program's stdin. In fact, a daemon, which from apache's perspective just exits immediately, will give you the behaviour you're seeing. Googling around should result in some examples. -- regards, kushal -- http://mail.python.org/mailman/listinfo/python-list