Hi all,

I develop a small django app. To service windows stations I need winexe to 
send commands. In djangos own web server it works ok. In log file I see all 
messages from winexe. If I use the same app in apache 2.6.4 I can see the 
command to windows station. And I see the result on my windows stations 
(restart/poweroff and so on). But winexe does not return. This process can 
not killed. I have to restart my command server.

Explanation for code:
_site entries comes from database
_pw and _ws comes from GET
_site['psexec'] contains windows command (script)

I'm not sure but I think all django processes runs under apache account. I 
have tested commands to send at command line as user apache - it works. I 
get winexe response.

My question: Are some changes on apache conf file required?

_cl = "%s -U %s/%s --password %s //%s '%s'" % (
                _site['cmd'],
                _site['domain'],
                _site['admin'],
                _pw,
                _ws,
                _site['psexec']
            )
            _ret = os.system(_cl)

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/f9807225-d5ea-4251-842f-2a82e92b59e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to