|
|
@ -273,7 +273,8 @@ def webssh(msg): |
|
|
|
recv = shell.recv(4096) |
|
|
|
recv = shell.recv(4096) |
|
|
|
emit('server_response', {'data': recv.decode("utf-8")}) |
|
|
|
emit('server_response', {'data': recv.decode("utf-8")}) |
|
|
|
except Exception as ex: |
|
|
|
except Exception as ex: |
|
|
|
print 'webssh:' + str(ex) |
|
|
|
pass |
|
|
|
|
|
|
|
# print 'webssh:' + str(ex) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@socketio.on('connect_event') |
|
|
|
@socketio.on('connect_event') |
|
|
@ -287,7 +288,8 @@ def connected_msg(msg): |
|
|
|
print recv.decode("utf-8") |
|
|
|
print recv.decode("utf-8") |
|
|
|
emit('server_response', {'data': recv.decode("utf-8")}) |
|
|
|
emit('server_response', {'data': recv.decode("utf-8")}) |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
print 'connected_msg:' + str(e) |
|
|
|
pass |
|
|
|
|
|
|
|
# print 'connected_msg:' + str(e) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@socketio.on('panel') |
|
|
|
@socketio.on('panel') |
|
|
|