Petite mise jour tools
Pseudo-rparation des scripts dans /usr/scripts/gestion/tools/ darcs-hash:20071211003807-ddb99-4670b17b63d914f1c06f84612aecdb3b9bb909f0.gz
This commit is contained in:
parent
3e269dbbfc
commit
a1a9308602
5 changed files with 9 additions and 9 deletions
|
@ -15,8 +15,8 @@ txts = []
|
|||
for c in comptes :
|
||||
if not c.compte() :
|
||||
continue
|
||||
quota = getoutput('quota %s | grep "/dev/" | awk \'{ print $1" "$3" "$4 }\'' % c.compte() )
|
||||
quota = getoutput('quota %s | grep "/dev/" | awk \'{ print $1" "$3" "$4 }\'' % c.compte())
|
||||
if quota != '/dev/sda1 400000 600000\n/dev/sda2 102400 153600' and quota != '/dev/sda2 102400 153600\n/dev/sda1 400000 600000' :
|
||||
txts.append( '%s (%s)\n%s' % (c.Nom(), c.compte(), quota) )
|
||||
txts.append(u'%s (%s)\n%s' % (c.Nom(), c.compte(), quota))
|
||||
|
||||
print '\n- - - - - - = = = = = = # # # # # # # # = = = = = = - - - - - -\n'.join(txts).encode('iso-8859-1')
|
||||
print '\n- - - - - - = = = = = = # # # # # # # # = = = = = = - - - - - -\n'.join(txts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue