[Pythonmac-SIG] pythonw from Apache

Ryan Wilcox ryanwilcox at mac.com
Mon Mar 15 12:30:54 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Once, Rob Bedford dist say:

>
>I want to use Applescript in my python from Apache.  When I try it is 
>obvious I need pythonw not python (need to access window server).  
>However if I change #!/usr/bin/python to #!/usr/bin/pythonw it does not 
>work.  Is this possible?

Yes. You either need to be running apache as the logged-in user (obviously - the
one with the active window manager ;) ) or use cgi-wrap.

There's a decent (or I'd like to think it's decent) tutorial on how to setup
cgiwrap here: <http://wilcoxd.com/blog/archives/000036.html>

Hope this helps,
_Ryan Wilcox

================================================================
Wilcox Development Solutions:          http://www.wilcoxd.com
Toolsmiths for the Internet Age            PGP: 0x2F4E9C31

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.0.3

iQA/AwUBQFXoTG2DtKgvTpwxEQJfBwCghsZ9TJA1mIjLbGSmqowzpf/HMoUAn1Ss
lW7yyYxrcWsc9H3Uiy9kF4wO
=SDLT
-----END PGP SIGNATURE-----



More information about the Pythonmac-SIG mailing list