Ok, it comes out, in very simple words, that I cannot do it. At least
not in "easy&default" way. Maybe for this issue using twisted.web (or
something like) is the best solution.

On Apr 15, 10:58 pm, Graham Dumpleton <[email protected]>
wrote:
> When running twisted you are likely running it as yourself from a
> shell accessed via Windows GUI.
>
> When Apache is run it is run as a service, which doesn't have access
> to the Windows GUI environment.
>
> This issue has been discussed before on the list but I don't remember
> what the outcome is. Read:
>
>  http://groups.google.com/group/modwsgi/browse_frm/thread/eb6cb4e790ad...
>
> to see if there was an outcome.
>
> Graham
>
> On 16 April 2010 01:21, Enrico Carlesso <[email protected]> wrote:
>
>
>
>
>
> > With twisted.web works fine...
>
> > On Apr 15, 9:21 am, Enrico Carlesso <[email protected]> wrote:
> >> Hi all guys.
>
> >> I've got a problem.
>
> >> I need to launch winvnc.exe (part of UltraVNC) from a mod_wsgi script
> >> (working with django, but from wsgi does not work either).
>
> >> The clue is that it seems that I'm not allowed to run graphical
> >> programs form apache. What I've done is to write a file.bat which logs
> >> the request on a file and runs the right command:
>
> >> �...@echo OFF
>
> >>  echo >> D:\connector_log.txt
> >>  echo "=======USER = %USERNAME% ===========" >> D:\connector_log.txt
> >>  date /t >> D:\connector_log.txt
> >>  time /t >> D:\connector_log.txt
> >>  "D:\Program Files\UltraVNC\winvnc.exe" -connect  %1 2> D:
> >> \connector_log1.txt
> >>  echo "Connecting to %1" >> D:\connector_log.txt
>
> >> The .bat file is called, the connector_log.txt is populated but no the
> >> winvnc.exe invocation fails (this means that my vncviewer -listen
> >> command on my linux box does not receive any input)
>
> >> Calling the file by hand works just fine on windows machine, as well
> >> as calling it by subprocess.call() invocation. But from wsgi (even
> >> with subprocess.call()) it just fails...
>
> >> Any idea?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "modwsgi" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/modwsgi?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to