Command Line arguments for SOS
Moderator: SourceGear
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
Command Line arguments for SOS
Hello there.
I am using the latest version of the SOS Client. Can some body please let me know all the command line arguments so that i can access the SOS Progrmatically. The Documnetation that has been provided with the SOS client installation is not at all sufficient for performing the necessary operations/functions.
You can also mail me at guruthilak@yahoo.com
Thanks and Regards
Guru
I am using the latest version of the SOS Client. Can some body please let me know all the command line arguments so that i can access the SOS Progrmatically. The Documnetation that has been provided with the SOS client installation is not at all sufficient for performing the necessary operations/functions.
You can also mail me at guruthilak@yahoo.com
Thanks and Regards
Guru
What version of SOS are you using?
If it's SOS 4.x, all the documentation for commands and parameters are in soscmd.txt in the SOS 4.x GUI client directory.
If you need help with some specific commands, post them here and we can help you get them written correctly. Be sure not to include actual passwords, user or server name, etc.
If it's SOS 4.x, all the documentation for commands and parameters are in soscmd.txt in the SOS 4.x GUI client directory.
If you need help with some specific commands, post them here and we can help you get them written correctly. Be sure not to include actual passwords, user or server name, etc.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
SOS Command lines
Hi Linda,
For example if i want to check out a file i will be using the command as folllows
C:\Program Files\SourceOffSite\soscmd.exe soscmd -command CheckOutFile -server xxxx.xxxxxxxxx.com:8890 -name guruthilak_kamata -password xxxxxxx -database F:\XXX\srcsafe.ini -project $/SOS/XXX/FP-RT -file Check_for_Oven_condition.vi -log "Checked out by Guru" -soshome "C:\Documents and Settings\Administrator.xxxx\Application Data\SourceGear\SOS"
WHich will work fine. Now similarly i can add a label, commemt or label comment to a file. Now can you please tell me what commands are you using to get the following informatiions (like all the comments that are used for the file or labels or label comments?) Programatically???
Even i would like to know how to log on to the server using command lines??
Regards
Guru
For example if i want to check out a file i will be using the command as folllows
C:\Program Files\SourceOffSite\soscmd.exe soscmd -command CheckOutFile -server xxxx.xxxxxxxxx.com:8890 -name guruthilak_kamata -password xxxxxxx -database F:\XXX\srcsafe.ini -project $/SOS/XXX/FP-RT -file Check_for_Oven_condition.vi -log "Checked out by Guru" -soshome "C:\Documents and Settings\Administrator.xxxx\Application Data\SourceGear\SOS"
WHich will work fine. Now similarly i can add a label, commemt or label comment to a file. Now can you please tell me what commands are you using to get the following informatiions (like all the comments that are used for the file or labels or label comments?) Programatically???
Even i would like to know how to log on to the server using command lines??
Regards
Guru
The SOS Command Line Client does not support all the operations of the SOS GUI Client. The documentation in soscmd.txt shows all the commands and parameters that are available.
The CLC cannot get comment information or label information (it can get a labeled version). Also, CLC can't create an automatic login so that you can use a GUI Client.
The CLC is a very basic client to use for automated tasks, like get, checkin, label, share, etc.
The CLC cannot get comment information or label information (it can get a labeled version). Also, CLC can't create an automatic login so that you can use a GUI Client.
The CLC is a very basic client to use for automated tasks, like get, checkin, label, share, etc.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
Hi Linda,
I am having one more question right now.
How can i find out whether a file or Folder/subfolder exists or not in the database through Command Line Client? (In VSS there is command called "Check if VSS path Exists" to check for the same)
Also i was looking at the ss.ini file for different user and it was seen to have difference among the ss.ini files eventhough they were all working on the same database??(same project)
I am having one more question right now.
How can i find out whether a file or Folder/subfolder exists or not in the database through Command Line Client? (In VSS there is command called "Check if VSS path Exists" to check for the same)
Also i was looking at the ss.ini file for different user and it was seen to have difference among the ss.ini files eventhough they were all working on the same database??(same project)
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
There isn't a comparable "Check if VSS path Exists" command in the SOS CLC. There are the GetProjectTree and the GetFileList commands that show the project tree and the file list within a project.
Regarding the ss.ini files, I believe these can be different, depending on the options set for each user in VSS. Are users experiencing problems because their ss.ini files are different?
Regarding the ss.ini files, I believe these can be different, depending on the options set for each user in VSS. Are users experiencing problems because their ss.ini files are different?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
Hello Linda,
I Am having one more question to you. How to get the Different versions of the file using SOS CLC. For example
"soscmd -command GetFile -server garcon:8080 -name joe -password camel-database c:\VSS\srcsafe.ini -project $/projects/apollo/src
-file source1.h -workdir c:\projects\apollo\src"
will get the "latest" version of the file "source1.h" from the data base. Now consider i would like to get the second version of the same file. How can i achieve it with SOS CLC???
Regarding my previous post, yes the SS.ini file did gave some problem if the users are not in the same domain. (only when the SOS CLC was run) There are some mismatches (like the databse paths were not Listed out in the SS.ini file and like so for different users)
I Am having one more question to you. How to get the Different versions of the file using SOS CLC. For example
"soscmd -command GetFile -server garcon:8080 -name joe -password camel-database c:\VSS\srcsafe.ini -project $/projects/apollo/src
-file source1.h -workdir c:\projects\apollo\src"
will get the "latest" version of the file "source1.h" from the data base. Now consider i would like to get the second version of the same file. How can i achieve it with SOS CLC???
Regarding my previous post, yes the SS.ini file did gave some problem if the users are not in the same domain. (only when the SOS CLC was run) There are some mismatches (like the databse paths were not Listed out in the SS.ini file and like so for different users)
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am
Do you want to find out if the SOS GUI Client is installed? In SOS 4.x, the CLC is part of the GUI Client installation, so if the CLC is there, the GUI Client should be there as well. Or you can do a Windows search for "sos.exe."Is there any command that can be run on SOS CLC to find out whether SOS is installed in the computer?
There's no specific command. If you try to connect via the secure port and you get an error, it means either that the .iky file was not imported, or that the user is connecting with a server name that's different from the servername used to create the .iky file.Like wise is it possible to know whether the user has imported the *.iky (key file) through SOS CLC??
When a .iky file is imported. SOS creates a <servername>.key file in the the user's %appdata%\SourceGear\SOS directory. If the server key file exists, that most likely indicates the .iky file was imported.
Does this help with your question?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 7
- Joined: Thu Nov 17, 2005 3:50 am