mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-21 20:45:11 +00:00
Added a build incrementer to the CMakeList. In order to increase the build number, you must invoke cmake -DBUILD_INCREMENT=1. The version is reported as X.Y.Z(build#). This depends on the file build
This commit is contained in:
23
test_scripts/python/cli.py
Executable file
23
test_scripts/python/cli.py
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import socket
|
||||
import sys
|
||||
import os
|
||||
|
||||
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||
|
||||
server_address = '/tmp/app.ucentralgw'
|
||||
|
||||
try:
|
||||
sock.connect(server_address)
|
||||
except socket.error:
|
||||
print >> sys.stderr, 'Could not connect'
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
message = 'set loglevel notice WebSocket'
|
||||
sock.sendall(message.encode('utf-8'))
|
||||
|
||||
finally:
|
||||
sock.close()
|
||||
|
||||
Reference in New Issue
Block a user