From: Cameron Patrick Date: Sun, 1 Aug 2004 06:41:04 +0000 (+0000) Subject: ahh, decserver doesn't always echo X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=970001af150dd11d28f38d3fbe643db9812a4cfd;p=zanchey%2Fdispense2.git ahh, decserver doesn't always echo --- diff --git a/sql-edition/servers/LATClient.py b/sql-edition/servers/LATClient.py index dedc1ff..12cc47c 100644 --- a/sql-edition/servers/LATClient.py +++ b/sql-edition/servers/LATClient.py @@ -99,9 +99,9 @@ class LATClient: self.sock.close() mopw, mopr = popen4('/usr/sbin/moprc '+self.server_name) read_for_a_bit(mopr) - write_expecting_echo(mopr, mopw, '\n') + mopw.write('\n') read_for_a_bit(mopr) - write_expecting_echo(mopr, mopw, self.connect_password+'\n') + mopw.write(self.connect_password+'\n') read_for_a_bit(mopr) write_expecting_echo(mopr, mopw, 'grim reaper\n') read_for_a_bit(mopr)