Difference between revisions of "Talk:AlphaGSM"

From Sector Alpha Wiki
Jump to: navigation, search
Line 1: Line 1:
 
* Code to emulate <code>tail -f</code>. This is needed to programmatically check the output of a server. <br /> 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 to emulate <code>tail -f</code>. This is needed to programmatically check the output of a server. <br /> 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 - <code><nowiki>http://ftp.tummy.com/pub/tummy/Python/tail.py</nowiki></code>

Revision as of 16:00, 25 February 2015

  • 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