Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Douglas A. Tutty
On Mon, Sep 03, 2007 at 01:58:59PM -0700, Freddy Freeloader wrote: > Douglas A. Tutty wrote: > >On Mon, Sep 03, 2007 at 11:48:48AM -0700, Freddy Freeloader wrote: > > > >>Now on to the next step, to figure out a way to poll for stdin, pass > >>that to exim, and process the message(thaw or remove

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Freddy Freeloader
Douglas A. Tutty wrote: On Mon, Sep 03, 2007 at 11:48:48AM -0700, Freddy Freeloader wrote: Now on to the next step, to figure out a way to poll for stdin, pass that to exim, and process the message(thaw or remove it) based on what I read in the header. Before we get too far down t

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Douglas A. Tutty
On Mon, Sep 03, 2007 at 11:48:48AM -0700, Freddy Freeloader wrote: > Now on to the next step, to figure out a way to poll for stdin, pass > that to exim, and process the message(thaw or remove it) based on what I > read in the header. Before we get too far down the garden path with this, wha

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Freddy Freeloader
Kumar Appaiah wrote: On Mon, Sep 03, 2007 at 08:05:16AM -0700, Freddy Freeloader wrote: So far I've coded everything as process oriented rather than object oriented as that is what I am familiar with, but I'm beginning to believe that using classes is probably the way to go as it would be mu

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Freddy Freeloader
Douglas A. Tutty wrote: On Mon, Sep 03, 2007 at 08:05:16AM -0700, Freddy Freeloader wrote: I'm wanting to learn python so I'm starting with projects that I want to automate at work. What I want to do in this specific instance is use a python script to call exipick to find all frozen message

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread G.W. Haywood
Hi there, > This will be sort of involved Why make it involved? :) > I'm wanting to learn python so ... use a python script to call > exipick to find all frozen messages in the Exim queue, then feed the > message id's to something ... so I can look at the message headers. > ... > I'm assumin

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Kumar Appaiah
On Mon, Sep 03, 2007 at 08:05:16AM -0700, Freddy Freeloader wrote: > So far I've coded everything as process oriented rather than object > oriented as that is what I am familiar with, but I'm beginning to believe > that using classes is probably the way to go as it would be much easier to > abst

Re: How to pipe from python script to system process that script starts

2007-09-03 Thread Douglas A. Tutty
On Mon, Sep 03, 2007 at 08:05:16AM -0700, Freddy Freeloader wrote: > > I'm wanting to learn python so I'm starting with projects that I want to > automate at work. What I want to do in this specific instance is use a > python script to call exipick to find all frozen messages in the Exim > que

How to pipe from python script to system process that script starts

2007-09-03 Thread Freddy Freeloader
Hi all, This will be sort of involved I'm wanting to learn python so I'm starting with projects that I want to automate at work. What I want to do in this specific instance is use a python script to call exipick to find all frozen messages in the Exim queue, then feed the message id's to