mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 23:21:34 +01:00
15 lines
375 B
Python
Executable File
15 lines
375 B
Python
Executable File
#!/usr/bin/python3
|
|
import os
|
|
import sys
|
|
import time
|
|
from hl_utils import error, is_cip, shexec, color_remove
|
|
|
|
#Druckerguthaben
|
|
if is_cip():
|
|
while(True):
|
|
out = color_remove(shexec("pr_acct").split("\n")[0]).split(' ')[-1]
|
|
with open("pracct.log",'w') as f :
|
|
f.write(out)
|
|
time.sleep(60)
|
|
sys.exit()
|