Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
livebox:xap_cacti [2013/05/29 02:03] – [Customizing for xAP] brett | livebox:xap_cacti [2013/05/31 11:57] (current) – [Customizing for xAP] garrydwilms | ||
---|---|---|---|
Line 100: | Line 100: | ||
import sys | import sys | ||
import time | import time | ||
- | from os import | + | import |
def getValue(target, | def getValue(target, | ||
- | | + | |
- | ret = x.read() | + | ret = f.read() |
- | | + | |
- | if ret: | + | if ret == " |
- | return ret | + | elif ret: |
- | return | + | return ret |
+ | return 0 | ||
if len(sys.argv) < 3: | if len(sys.argv) < 3: |