"Best" way to SIGHUP spamd from web page?

Robert Brewer fumanchu at amor.org
Fri Feb 18 14:15:25 EST 2005


stephen at theboulets.net wrote:
> Webmin (webmin.com) has a command shell module (cgi over 
> https?). Isn't this an example of a secure way to run
> commands via the internet?

Yes, if I wanted to write my app in Perl 5. ;) But as far as I can tell,
that relies heavily on Perl's taint-checking, which isn't available in
Python.

I ended up writing a daemon (running as root) which simply listens on a
local socket; when it receives any message, it HUPs spamd. Ugly but
effective.


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org



More information about the Python-list mailing list