I'm attempting to use the pxssh to execute commands on a remote
machine and do stuff with the output. Both machines are running SSH
Version Sun_SSH_1.0, protocol versions 1.5/2.0 and Intel Solaris 9.
I am hitting a problem with read_nonblocking in the pexpect module as
follows:
>>> import pxssh
Got it. New PickleQueue class should be as follows:
import Queue
import cPickle
class PickleQueue(Queue.Queue):
"""A multi-producer, multi-consumer, persistent queue."""
def __init__(self, filename, maxsize=0):
"""Initialize a persistent queue with a filename and maximum
size.
I have a script which is based on the following code. Unfortunately,
it only works on Python 2.3 and not 2.5 because there is no esema or
fsema attribute in the 2.5 Queue. I am hunting through the Queue.py
code now to try to figure out how to make it work in 2.5, but as I am
a beginner, I am havi
Is the following the most elegant way to exit a multi-threaded
application on a Ctrl-C? I am a complete beginner and would have
thought there was some way of doing it without having to use while 1:
pass, but have yet to find a way.
N.B. exit() is a method for cleanly exiting the thread using a qu
All I have to go on is the RFC2060 standard which says:
7.3.1. EXISTS Response
Contents: none
The EXISTS response reports the number of messages in the
mailbox.
This response occurs as a result of a SELECT or EXAMINE command,
and if the size of the mailbox changes (e.g. n
I have three messages in my inbox. Why does messageCount =
gServer.select('INBOX') not just return OK and 3. See below for
examples - seems to be completely random how many threes it returns.
The documentation for imaplib seems sparse. Does anybody have any good
links? Many thanks, Jon
message
Thank you. I have just realised I completely misunderstand how SMTP
servers work. From what I can tell, when you run the cookbook script
it listens locally on port 8025.
You then have to configure a Linux (in my case) account with a username
and password so my external piece of software (on anot
I have an externally-written piece of software that spits out emails
using SMTP (a few hundred per hour) and I would like to dump the
content of them in an MS SQL Server database.
I have barely used Python before but it looks as if it could do the
job. I have no experience with mail agents. My s
Thank you for your help - the application is proceeding well.
--
http://mail.python.org/mailman/listinfo/python-list
many thanks - works perfectly now
--
http://mail.python.org/mailman/listinfo/python-list
I'm just getting started on threading and was wondering why the
following code does not work (i know globals is bad style - I'll
eliminate them eventually). All I get is a blank cursor flashing.
Many thanks
Jon
import threading
import sys
import time
global g_datum
global g_rawfile
global g_raw
Thank you this is very helpful. The only thing I now don't understand
is why it is calling __coerce__. self.wrapped and other are both
lists.
Thanks
Jon
--
http://mail.python.org/mailman/listinfo/python-list
I am constructing a simple class to make sure I understand how classes
work in Python (see below this paragraph).
It works as expected, except the __add__ redefinition. I get the
following in the Python interpreter:
>>> a=myListSub()
>>> a
[]
>>> a+[5]
Traceback (most recent call last):
File "
13 matches
Mail list logo