|
|
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 handles more cases - <code><nowiki>http://ftp.tummy.com/pub/tummy/Python/tail.py</nowiki></code>
| |