The Tuam Herald - Galway G.A.A. Conventions Pádraig

Galway G.A.A. Conventions

Wednesday, 1st December, 2010 11:00am

HURLING Board A.G.M. tonight (Weds.) in the Raheen Woods Hotel, Athenry at 8.00 o'clock. To be returned unopposed: chairman Joe Byrne and treasurer John McGann. The new secretary will be Pat Kearney (Kilbeacanty), taking over from John Fahey.

Election for vice-chairman: candidates John Fahey (St Thomas's) and Noel Turley (Meelick / Eyrecourt).

Election for assistant secretary: candidates Noel Turley (Meelick / Eyrecourt), Tommy Fox (Sarsfields) and Malachy Hanley (Carnmore).

Election for assistant treasurer: candidates Noel Turley (Meelick / Eyrecourt), Michael Bodkin (Pádraig Pearses), Michael Flanagan (Kilnadeema / Leitrim) and Michael Larkin (Craughwell).

FOOTBALL BOARD CONVENTION next Monday night, December 6th at Loughgeorge. Two contests: Assistant secretary, candidates Mary Judge (Caherlistrane) and Ian Hynes (Kilkerrin / Clonberne); not expected to run in this election is Máirtín Ó Curraoin (Mícheál Breathnachs), while definitely not running is Séamus Finnerty (Annaghdown).

Election for assistant treasurer: candidates Paddy Sweeney (Killanin), outgoing; J. P. Kelly (Caltra), Tommy Keenan Jnr. (Dunmore MacHales), Noel Kinneen (Annaghdown).

JUVENILE FOOTBALL BOARD (Coiste Peil na nÓg) A.G.M. was held in Loughgeorge on Monday night of this week.

Officers elected: President, Fr Liam Kitt (Caltra); Chairman, Tadhg Ó Conghaile (An Spidéal); vice-chairman, P. J. Rabbitte (Kilkerrin-Clonberne); secretary, Alan Carr (Maigh Cuilinn); assistant secretary, Jimmy Sice (Corofin); treasurer, Peter Bane (Caherlistrane); assistant treasurer, Mary Flaherty (Cortoon Shamrocks); P.R.O., Larry Lohan (St. Gabriel's); Board members: Bobby Mullins (Monivea-Abbey), Noel Finnegan (Williastown), Padraic Coyne (Milltown), Bert Curran (Barna).

At the annual general meeting, all the medals from the year's competitions were presented. Club of the Year went to Mountbellew / Moylough; Special Achievements award, Loughrea; Bertie Coleman Memorial Cup, Bobby Mullins.

Many tributes were paid to outgoing secretary Bobby Mullins and he was warmly commended for all his hard work; Bobbby was a most worthy recipient of the Bertie Coleman Cup.

  • Read
  • Email
  • Print

Latest Video

Purchase a digital edition g kwdgrlso. chilliwack bomber canada gooseift subscription for 1 YEAR  for those overseas. Local news on the move and accessible on all platforms; desktop, tablet and smartphones 

Next Story

Cheers and terror for teen champ

Cheers and terror for teen champ

01 Nov 2017Gunshots caused a stampede in the Italian arena where kickboxer Alex Fitzpatrick was in action


Pádraig

Canada goose london
canoas goos
goose coats

A better popen2

P: n/a
P
I've written a couple of apps that required
running a command and grabbing the output,
and I've found the existing interfaces problematic for this.

I think the proliferation of functions and classes
in the popen2 module illustrates the problem
(popen2.{popen2,popen3,popen4,Popen3,Popen4})
Now if I want to read both stdout and stderr
seperately then it's awkward to say the least
to implement that without deadlocking using
the popen2 module. Also the multiplexing of
stdout and stderr in popen4 and commands.getoutput
is not usually what one requires IMHO.

There are external solutions like the getCommandOutput recipe:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/52296
which has problems that I've commented on there.
There are also very complex solutions like "subproc" from
Ken Manheimer and "task" from Rob Hooft

Therefore I bit the bullet and wrote my own,
with as simple an interface as I thought possible:
http://www.pixelbeat.org/libs/subProcess.py

Perhaps this could be included in commands.py for e.g.?

Any comments appreciated.

cheers,
Pádraig.

p.s. sorry about the previous case of trigger finger
Jul 18 '05 #1
Post Reply
Share this Question
Share on Google+
4 Replies


P: n/a
Donn Cave
In article <40************@draigBrady.com>, P@draigBrady.com wrote:
....
There are external solutions like the getCommandOutput recipe:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/52296
which has problems that I've commented on there.
There are also very complex solutions like "subproc" from
Ken Manheimer and "task" from Rob Hooft

Therefore I bit the bullet and wrote my own,
with as simple an interface as I thought possible:
http://www.pixelbeat.org/libs/subProcess.py

Perhaps this could be included in commands.py for e.g.?


It looks pretty good to me. A couple of minor points:

- dup2(a, sys.stdout.fileno())

You want 1, not sys.stdout.fileno(). They should be
the same, unless someone has been monkeying around
with stdout, and in that case you must use 1. (And
of course likewise with stderr and stdin, mutatis
mutando.) After the exec, whatever stdout was is
irrelevant and the new command will write to 1, read
from 0, etc.

- execvp('/bin/sh', ['sh', '-c', cmd])

I think that could be just execv(), since you've
supplied a path already. But I really prefer the
way Popen3 does it, where the input parameter is
argv, not a shell command (and you do use execvp.)
Of course you can supply ['sh', '-c', cmd] as that
parameter, but for me it's more often the case that
the parameters are already separate, and combining
them into a shell command is unnecessary and risky.
(Don't support both, like Popen3 does - that was a
mistake that seems to routinely leave people confused
about how it works.)

And I haven't really tried to verify the logic or anything,
but it does look like the right idea to me.

I will at least add it to my collection. I don't have
it at hand and haven't looked at it for a while, but
at one time I was thinking I would put together every
one of these things that has come across comp.lang.python,
might be a dozen or so but I don't think I have them all
yet. (I don't think I have "task", good find.)

The most conspicuous recent one was (I think) called
popen5, and rumor has it, will be standard with 2.4,
and will have the select functionality you need, not
only on UNIX but also on Windows, where it isn't so
trivial a feat.

Other than the platform dependency issues, I think
the main reason this wasn't in the core library from
the beginning is that the problem is more complicated
than the solution, if you know what I mean. Or, each
programmer's itch seems to be in a slightly different
place.

Donn Cave, do**@u.washington.edu
Jul 18 '05 #2

P: n/a
P
Donn Cave wrote:
In article <40************@draigBrady.com>, P@draigBrady.com wrote:
...
http://www.pixelbeat.org/libs/subProcess.py

Perhaps this could be included in commands.py for e.g.?

It looks pretty good to me. A couple of minor points:

- dup2(a, sys.stdout.fileno()) -> dup2(a, 1)


doh! of course. I hate magic numbers
but what I did was certainly wrong.
- execvp('/bin/sh', ['sh', '-c', cmd])

I think that could be just execv(), since you've
supplied a path already. But I really prefer the
way Popen3 does it, where the input parameter is
argv, not a shell command (and you do use execvp.)
I just copied the way Popen3 did it?
Of course you can supply ['sh', '-c', cmd] as that
parameter, but for me it's more often the case that
the parameters are already separate, and combining
them into a shell command is unnecessary and risky.
(Don't support both, like Popen3 does - that was a
mistake that seems to routinely leave people confused
about how it works.)
fair enough.
And I haven't really tried to verify the logic or anything,
but it does look like the right idea to me.

I will at least add it to my collection. I don't have
it at hand and haven't looked at it for a while, but
at one time I was thinking I would put together every
one of these things that has come across comp.lang.python,
might be a dozen or so but I don't think I have them all
yet. (I don't think I have "task", good find.)

The most conspicuous recent one was (I think) called
popen5, and rumor has it, will be standard with 2.4,
and will have the select functionality you need, not
only on UNIX but also on Windows, where it isn't so
trivial a feat.
Cool! I missed that: http://www.python.org/peps/pep-0324.html
I had a 10 second look at process.Popen.communicate() and it seems
to do much the same as I did, however it's missing a timeout
parameter like I implemented which I think is important.
Other than the platform dependency issues, I think
the main reason this wasn't in the core library from
the beginning is that the problem is more complicated
than the solution, if you know what I mean. Or, each
programmer's itch seems to be in a slightly different
place.


I aggree that the appropriate interface is hard to define
however I think we all agree that popen2 is definitely not it.

thanks a million,

P

Pádraig Dalton was appointed to the role of Director General of the Central Statistics Office in May 2012.

Pádraig is a career statistician having joined the CSO in November 1991. He has worked in Structural Business Statistics, Statistical Methodology, Balance of Payments and in the Labour Market and Social Inclusion Division. Between 2007 and 2010 Pádraig was Director of Statistical Support & Innovation and Assistant Director General, Social & Demographic Statistics from September 2010 to May 2012.

Pádraig is a member of the European Statistical System Committee (ESSC) which provides professional guidance to the European Statistical System (ESS) for developing, producing and disseminating European Statistics. Pádraig is also Chair of the United Nations Economic Commission for Europe (UNECE) High Level Group for the Modernisation of Statistical Production and Services and is an ex-officio member of the National Statistics Board (NSB).

Pádraig is a graduate of University College Dublin where he completed his primary degree, a B.A. in Pure Economics in 1989 and he was awarded a Masters in Economics in 1990.

Section 12-17 of the Statistics Act 1993 sets out the functions and responsibilities of the Director General of the CSO.