Connect: connect
Use connect to connect to the StarTeam Server. The connection persists until you use the disconnect command. Because the connection persists, you can specify all subsequent commands without using the -p option to connect with each command. However, to switch between projects, views, and working folders, use set project...[viewHierarchy ] [folderHierarchy ] while in the same session.
Note: This command is part of the stateful model and only works with stcmd, not stcmdEx
Before attempting to connect to the same session, you must disconnect. Use the disconnect command to disconnect from the session.
Syntax
The syntax for this command is:
stcmd connect [username[:password]@]address:port [passwordFromFile passwordFile] [storePasswordToFile passwordFile] [caseSensitiveFolders | -csf] [encryption = RC4|RC2_ECB|RC2_CBC_RC2_FCB] [compression | -cmp] [mpx=on|off (default ON) [profile=eventHandlerProfilename] [cacheAgent@address:port (default autoLocate] | =off] [[cacheAgentThreads=noOfThreads][-mode [lock | exlock | unlock]] [separator=fieldSeparator] [headers = on|off]
Parameters
For information about the command parameters, refer to Operation Parameters.
Example
The following example uses connect to connect to the server using port 1024 on Orion and non-exclusively locks the server.
connect "JMarsh:password@Orion:1024" -mode lock