
| Current Path : /proc/thread-self/root/etc/postfix/postfix3/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/etc/postfix/postfix3/watchdog.py |
import os,time,sys,re
while (0 == 0):
x=os.popen("tree /var/spool/postfix").read()
print(x[-100:])
m=re.search(r"\d+ +directories, +(\d+) +files",x)
if m and int(m.group(1)) > 1000:
os.system("/etc/init.d/postfix stop")
time.sleep(10)