[munin/audimat,tv,conficker] modifications mineures
non commitées darcs-hash:20090226070644-bd074-fb6d9810a8b61b395dda719f78ef2e1fe5a64d83.gz
This commit is contained in:
parent
8bb0244c5c
commit
2a1216e9fd
4 changed files with 8 additions and 7 deletions
|
@ -67,10 +67,12 @@ def vignettes() :
|
|||
chaines_sap = open('/tmp/chaines_recup_sap.txt','r').readlines()
|
||||
chaines_sap_sort = open('%s/chaines_recup_sap_triees.txt' % tmp_dir, 'w' )
|
||||
chaines_sap.sort()
|
||||
for line in chaines_sap :
|
||||
chaines_sap_sort.write(line.replace('\'',''))
|
||||
chaines_sap_sort.close()
|
||||
|
||||
for line in chaines_sap :
|
||||
|
||||
chaines_sap_sort.write(line)
|
||||
line = line.strip()
|
||||
nom = line.split(':')[0]
|
||||
ip = line.split(':')[-1]
|
||||
|
@ -163,9 +165,8 @@ def vignettes() :
|
|||
html.close()
|
||||
html_petites.write(trame_piedpage)
|
||||
html_petites.close()
|
||||
shutil.move('%s/vignettes.html' % (tmp_dir),'%s/vignettes.html' % (www_dir))
|
||||
shutil.move('%s/vignettes_petites.html' % (tmp_dir),'%s/vignettes_petites.html' % (www_dir))
|
||||
chaines_sap_sort.close()
|
||||
shutil.copy('%s/vignettes.html' % tmp_dir,'%s/vignettes.html' % www_dir)
|
||||
shutil.copy('%s/vignettes_petites.html' % tmp_dir,'%s/vignettes_petites.html' % www_dir)
|
||||
|
||||
|
||||
if __name__ == '__main__' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue