Skip to content

Commit

Permalink
some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atupal committed Jun 20, 2013
1 parent 71f3d30 commit 0db2b18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions dianzan/run_server_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
os.system('scp -P 56369 server_dianzan.py atupal@168.63.179.223:~/ts.py')

stdin, stdout, stderr = client.exec_command('pkill -9 python')
stdin, stdout, stderr = client.exec_command('cat nohup.out')
print stdout.read()
stdin, stdout, stderr = client.exec_command('rm nohup.out')
stdin, stdout, stderr = client.exec_command('nohup python ts.py &')

client.close()

#import subprocess
#P = subprocess.Popen()

print 'begin'
import time
time.sleep(10)

os.system('scp -P 56369 atupal@168.63.179.223:~/img.jpg img.gif')

from PIL import Image
Expand All @@ -34,3 +39,6 @@
fi.write(raw_input('verify:'))

os.system('scp -P 56369 verify atupal@168.63.179.223:~/verify')

time.sleep(60)
client.close()
2 changes: 1 addition & 1 deletion dianzan/server_dianzan.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _login(self):
import os
if os.environ.get('HOME') == '/home/atupal':
import time
time.sleep(60)
time.sleep(70)
with open('verify', 'r') as fi:
#data['verify'] = raw_input("verify:")
data['verify'] = fi.readline().strip('\n')
Expand Down

0 comments on commit 0db2b18

Please sign in to comment.