i have this code to print every new element in a list only when the list
length changes (while the list is updated by a thread running elsewhere)...I
was wondering if there is a pythonic way to do this? how does one know when
there is a new element in the list?
prevlength = 0
while geoCode.run
Hello, I think this is a problem with mod_python and Apache
configuration, you should checkout mod_python configuration for
Apache+Windows.
Most likely your problem is the mod_python library file, use this
instead (more appropiate for windows):
"LoadModule python_module modules/mod_python.dll"
I
Hello Python Mailing ListI am trying to set up mod python 3.3.1. I have python 2.5.1, apache 2.2 server, and my os is Vista. The problem is that after I install mod python, there is no mod_python.so in the apache modules directory. Thus the "LoadModule python_module modules/mod_python.so" call does
I am just trying to automate series of commands while keeping a low security
profile. Most of the stuff we do now is through SSH and Pyexpect. I would
like to see if there is a way of just triggering commands without requiring
us to SSH into the server to get them to run. We currently ssh into a
>
> looking for a way to run commands remotely on another computer.
>
I can run pretty much complicated commands on remote servers using only ssh.
I also run programs on remote server (when inside lan) using cgi module,
works perfectly.
maybe if you describe your problem i can provide you with so
I am looking for a way to run commands remotely on another computer. I was
thinking of doing this with XMLRPC. All the machines I have are behind a
private network so I don't have the security implications of them being
public. I need to run actual system level commands on the box themselves.
Wh
Hmmm, the power function has basically two definitions:
a ** n
for integer n, pow is defined for all a in R.
for real n, pow is defined only for non-negative a.
If you think how a**x is derived (as a generalization from a**(p/q)),
that makes sense.
Basically, a ** (p/q), p > 0, q > 0, gcd(p, q)
On Tue, Apr 22, 2008 at 6:06 AM, Stephen Nelson-Smith <[EMAIL PROTECTED]>
wrote:
> smtpserver = 'relay.clara.net'
>
> RECIPIENTS = ['[EMAIL PROTECTED]']
> SENDER = '[EMAIL PROTECTED]'
> message = """Subject: HTTPD ALERT: %s requests %s connections
> Please investigate ASAP.""" % (rps, connections)
i can send email w/ no problem using this :
import smtplib
smtp = smtplib.SMTP()
smtp.connect('smtp_server_here')
smtp.login('user_name', 'password')
smtp.sendmail(strFrom, strTo, msgRoot.as_string())
smtp.quit()
___
Tutor maillist - Tutor@python.org
h
smtpserver = 'relay.clara.net'
RECIPIENTS = ['[EMAIL PROTECTED]']
SENDER = '[EMAIL PROTECTED]'
message = """Subject: HTTPD ALERT: %s requests %s connections
Please investigate ASAP.""" % (rps, connections)
session = smtplib.SMTP(smtpserver)
smtpresult = session.sendmail(SENDER, RECIPIENTS, messag
Stephen Nelson-Smith wrote:
Comments and criticism please.
The SGML parser seems like overkill. Can't you just apply the regexes
directly to status_info?
If the format may change, or you need to interpret entities, etc then
the parser is helpful. In this case I don't see how it is needed.
Hello,
> For data this predictable, simple regex matching will probably work fine.
I thought that too...
Anyway - here's what I've come up with:
#!/usr/bin/python
import urllib, sgmllib, re
mod_status = urllib.urlopen("http://10.1.2.201/server-status";)
status_info = mod_status.read()
mod_st
12 matches
Mail list logo