mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 16:18:33 +01:00
various fixes and migration to python
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from hl_utils import error, is_cip, shexec, color_remove
|
||||
from hl_utils import error, is_cip, shexec, color_remove, hlpath
|
||||
|
||||
#Druckerguthaben
|
||||
if is_cip():
|
||||
while(True):
|
||||
path = hlpath("pracct.log")
|
||||
out = color_remove(shexec("pr_acct").split("\n")[0]).split(' ')[-1]
|
||||
with open("pracct.log",'w') as f :
|
||||
with open(path,'w+') as f:
|
||||
f.write(out)
|
||||
time.sleep(60)
|
||||
time.sleep(30)
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user