pexpect problem, spawn says I/O on closed file

edwin madeddie at madtech.cx
Fri Apr 15 18:50:57 EDT 2005


Hi,

I'm using pexpect in a plugin script within bartbot (an python based irc
bot). When I execute the plugin, python comes back with:

ERROR exceptions.ValueError file:
/home/edwin/devel/bartbot/myplugins/rttest.py linenr: 17 msg: I/O \
operation on closed file

rttest.py being the plugin script, line 17 being:
        child = spawn("ssh -l %s %s /bin/ls -l"%(user, host))

before i paste the whole script here, does anybody have any "ah, that's
simple, check..."'s? ;)



More information about the Python-list mailing list