You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'RTOC.py [-h, -s] [-r <Remoteadress>]\n -h: Hilfe\n-s: TCP-Server ohne GUI\n-r <Remoteadresse>: TCP-Client zu RTOC-Server\n-p: Starte TCP-Server auf anderem Port (Standart: 5050)')
749
-
sys.exit()
750
-
elifopt=='-s':
748
+
'RTOC.py [-h, -s] [-r <Remoteadress>]\n -h: Hilfe\n-s (--server) [COMMAND]: TCP-Server ohne GUI\n\t- start: Starts the RTOC-daemon\n\t- stop: Stops the RTOC-daemon\n\t- restart: Restarts the RTOC-daemon\n-r (--remote) <Remoteadresse>: TCP-Client zu RTOC-Server\n-p (--port): Starte TCP-Server auf anderem Port (Standart: 5050)\n-c (--config): Configure RTOC')
749
+
sys.exit(0)
750
+
elifoptin ('-s','--server'):
751
751
# logger = RTLogger.RTLogger(True, port)
752
752
# #runInBackground()
753
753
# while logger.run:
@@ -763,19 +763,25 @@ def main():
763
763
daemon.start()
764
764
else:
765
765
print('Unknown server command: '+str(command)+'\nUse "start", "stop" or "restart"')
'RTOC.py [-h, -s] [-r <Remoteadress>]\n -h: Hilfe\n-s: TCP-Server ohne GUI\n-r <Remoteadresse>: TCP-Client zu RTOC-Server\n-p: Starte TCP-Server auf anderem Port (Standart: 5050)')
45
-
sys.exit()
46
-
elifopt=='-s':
44
+
'RTOC.py [-h, -s] [-r <Remoteadress>]\n -h: Hilfe\n-s (--server) [COMMAND]: TCP-Server ohne GUI\n\t- start: Starts the RTOC-daemon\n\t- stop: Stops the RTOC-daemon\n\t- restart: Restarts the RTOC-daemon\n-r (--remote) <Remoteadresse>: TCP-Client zu RTOC-Server\n-p (--port): Starte TCP-Server auf anderem Port (Standart: 5050)\n-c (--config): Configure RTOC')
45
+
sys.exit(0)
46
+
elifoptin ('-s','--server'):
47
47
command=arg
48
48
daemon=RTOCDaemon('/tmp/RTOCDaemon.pid')
49
49
ifcommand=='stop':
@@ -54,13 +54,17 @@ def main():
54
54
daemon.start()
55
55
else:
56
56
print('Unknown server command: '+str(command)+'\nUse "start", "stop" or "restart"')
0 commit comments