pty, qwsv and Python

Henrique Almeida palpa at bogus.bogus.com
Fri Apr 16 13:24:44 EDT 1999


Warning: NO native speaker ahead.

Hi.

I'm new to Python (only started looking at the docs yesterday). I want
to know if it is possible to control a qwsv (quake world linux server)
using Python: ie do a "status" command in the qwsv every 5 minutes,
process the returned code, watch for some string in the pty...

After searching the Python home page it looks like popen2() is the way
to go. Is it? Also, is it possible to use "screen" (a program that let
me "detach" the server) and "popen2" at the same time? I would like have
a interactive session to qwsv to do administration.

Thanks.




More information about the Python-list mailing list