Pollution pour test
darcs-hash:20040214192017-41617-ee387944f40e3a9d585feb6c7176c99d9b83142a.gz
This commit is contained in:
parent
6932c3e423
commit
cf31c7ef74
1 changed files with 9 additions and 3 deletions
12
syncmail
12
syncmail
|
@ -234,18 +234,24 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
|
|||
|
||||
# Obtention du real user => signature automatique des commits
|
||||
ppid=os.getpid()
|
||||
print ppid
|
||||
print os.getppid()
|
||||
os.system('env')
|
||||
os.system('ps auxww -o ppid,pid,user')
|
||||
while user=='root' :
|
||||
ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0]))
|
||||
if ppid=='1' :
|
||||
# C'est init, l'user est donc bien root
|
||||
print os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()
|
||||
break
|
||||
|
||||
userp='pauget'
|
||||
|
||||
sys.exit(0)
|
||||
domain = fromhost or getfqdn()
|
||||
#Modif cosmétique pour afficher un sujet explicite :
|
||||
host = string.split(domain,'.')
|
||||
author = '%s@%s' % (user, domain)
|
||||
s = StringIO()
|
||||
people = 'fred@crans.org'
|
||||
s = StringIO()
|
||||
sys.stdout = s
|
||||
try:
|
||||
print '''\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue