Commit deeafe47 authored by Daniel STAN's avatar Daniel STAN

quota: sudo jamais interactif

parent 36613a1d
......@@ -11,7 +11,7 @@ def getFloat(chose):
return float(chose)
def getUserQuota(user):
proc = subprocess.Popen(['sudo', 'quota', user], stdout=subprocess.PIPE)
proc = subprocess.Popen(['sudo', '-n', 'quota', user], stdout=subprocess.PIPE)
stdoutdata = proc.communicate()[0]
string_result = stdoutdata.split("\n")
quotas = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment