[whokfet] seulement sur zamok (2/2)
Ignore-this: 22332d9c5ec07093d4ba1980a52d0567 darcs-hash:20121108180113-ffbb2-b29a3e7eec42d57f1828cfe4c0955064738c909e.gz
This commit is contained in:
parent
c5d08c0368
commit
166fb4393c
1 changed files with 6 additions and 1 deletions
|
@ -4,12 +4,17 @@
|
|||
'''Ce script permet de savoir s'il y a du monde à la kfet, filtre par membres actifs.'''
|
||||
|
||||
import sys
|
||||
from socket import gethostname
|
||||
|
||||
if gethostname() != "zamok":
|
||||
print "Merci d'executer ce script sur zamok."
|
||||
sys.exit(1)
|
||||
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
from ldap_crans import crans_ldap
|
||||
from hptools import hpswitch, ConversationError
|
||||
from affich_tools import coul, cprint
|
||||
from whos import aff
|
||||
from socket import gethostname
|
||||
from os import system
|
||||
import xml.dom.minidom
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue