DisconnectFromServer

From Array Suite Wiki

Jump to: navigation, search

Use the "DisconnectFromServer" command at the end of scripts that start with "ConnectServer", to force remote sessions to end. Otherwise, the user will be logged in on the remote server until time-out disconnects the session.

e.g.:

Begin ConnectServer;

Server "tcp://putyourserverhere:8065" /User=userID /Password=YourPassword;
End;
Begin NewProject;
ServerProject test_prj1_2020;
Options /Distributed=True;
End;
Begin PublishProject /Namespace=;
Project test_prj1_2020;
Server "tcp://putyourserverhere:8065/RemoteServer" /User=userID /Password=YourPassword;
Options "
Editors=editors
Readers=standard users

End;
Begin DisconnectFromServer;
End