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
8
syncmail
8
syncmail
|
@ -234,17 +234,23 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
|
||||||
|
|
||||||
# Obtention du real user => signature automatique des commits
|
# Obtention du real user => signature automatique des commits
|
||||||
ppid=os.getpid()
|
ppid=os.getpid()
|
||||||
|
print ppid
|
||||||
|
print os.getppid()
|
||||||
|
os.system('env')
|
||||||
|
os.system('ps auxww -o ppid,pid,user')
|
||||||
while user=='root' :
|
while user=='root' :
|
||||||
ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0]))
|
ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0]))
|
||||||
if ppid=='1' :
|
if ppid=='1' :
|
||||||
# C'est init, l'user est donc bien root
|
# C'est init, l'user est donc bien root
|
||||||
|
print os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()
|
||||||
break
|
break
|
||||||
|
|
||||||
userp='pauget'
|
sys.exit(0)
|
||||||
domain = fromhost or getfqdn()
|
domain = fromhost or getfqdn()
|
||||||
#Modif cosmétique pour afficher un sujet explicite :
|
#Modif cosmétique pour afficher un sujet explicite :
|
||||||
host = string.split(domain,'.')
|
host = string.split(domain,'.')
|
||||||
author = '%s@%s' % (user, domain)
|
author = '%s@%s' % (user, domain)
|
||||||
|
people = 'fred@crans.org'
|
||||||
s = StringIO()
|
s = StringIO()
|
||||||
sys.stdout = s
|
sys.stdout = s
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue