[Twisted-Python] calling unix commands
Itamar Shtull-Trauring
itamar at itamarst.org
Fri Sep 12 20:16:17 MDT 2003
On Sat, 6 Sep 2003 13:07:09 -0400 (EDT)
Konrad Rokicki <konrad at wam.umd.edu> wrote:
> Hey everyone,
> I'm having a problem calling a unix comand from inside a twisted
> program.. I do
> os.popen(cmd).readlines()
> and I sporadically get:
> IOError: [Errno 4] Interrupted system call
>
> Sounds like it might be an async problem.. is there a preferred way to
> do this in twisted?
reactor.spawnProcess. I'm pretty sure we have a HOWTO on this.
--
Itamar Shtull-Trauring http://itamarst.org/
Available for Python & Twisted consulting
More information about the Twisted-Python
mailing list