def affinity(self):
return 20
+class PipeIdler(StringIdler):
+ def __init__(self, v, command):
+ text = "I ate my cookie...."
+ if os.access(command,os.F_OK|os.X_OK):
+ (stdout, stdin) = popen2.popen2(command)
+ text = string.join(stdout.readlines())
+ stdout.close()
+ stdin.close()
+ StringIdler.__init__(self, v, text,repeat=False)
+
+ def affinity(self):
+ return 20
+
class FileIdler(StringIdler):
def __init__(self, v, thefile=None, repeat=False):
text = "I broke my wookie...."
GrayIdler(v,one="/",zero="\\",reorder=1),
StringIdler(v, text=str(math.e) + " "),
GrayIdler(v,one="X",zero="O",reorder=1),
- StringIdler(v, text="I want some pizza - please call Pizza Hut Shenton Park on +61 8 9381 9979 - and order as Quinn - I am getting really hungry", repeat=False),
+ StringIdler(v, text=" I want some pizza - please call Pizza Hut Shenton Park on +61 8 9381 9979 - and order as Quinn - I am getting really hungry", repeat=False),
+ PipeIdler(v, "/usr/bin/ypcat", "passwd"),
FortuneIdler(v),
ClockIdler(v),
StringIdler(v),