diff --git a/munin/batiments b/munin/batiments index 6808494e..00e0f92a 100755 --- a/munin/batiments +++ b/munin/batiments @@ -38,7 +38,7 @@ if arg == "config" : print 'total.label Total' elif arg == "fichier" : - file = open(fichier,'w') + file = open('%s.next' % fichier,'w') sys.path.append('/usr/scripts/gestion') from ldap_crans import crans_ldap @@ -60,5 +60,6 @@ elif arg == "fichier" : file.write("total.value %d\n" % total) file.close() + os.system('mv %s.next %s' % (fichier, fichier)) else : os.system('cat %s' % fichier)