Talk:AlphaGSM
From Sector Alpha Wiki
- Code to emulate
tail -f
. This is needed to programmatically check the output of a server.
Basically we open the log before we send a command. Seek to the end, send our command and then keep reading any output given till we decide we have read enough and then close the file.- code handles more cases -
http://ftp.tummy.com/pub/tummy/Python/tail.py
- code handles more cases -