Scommands
From SRB
| Revision as of 22:52, 14 March 2006 Mwan (Talk | contribs) ← Previous diff |
Revision as of 22:59, 14 March 2006 Mwan (Talk | contribs) Next diff → |
||
| Line 23: | Line 23: | ||
| The following is an example of an SRB session. Standard Unix commands (ls, pwd, cd, etc.) will still work for your local machine during all SRB sessions. | The following is an example of an SRB session. Standard Unix commands (ls, pwd, cd, etc.) will still work for your local machine during all SRB sessions. | ||
| - | % [[Sinit]] [start a new SRB session] | + | % [[Sinit]] [start a new SRB session] |
| - | % Smkdir newDir [make an SRB directory "newDir"] | + | % [[Smkdir]] newDir [make an SRB directory "newDir"] |
| - | % SgetColl -ahc newDir [display information about "newDir"] | + | % [[SgetColl]] -ahc newDir [display information about "newDir"] |
| --------------------------- RESULTS ------------------------------ | --------------------------- RESULTS ------------------------------ | ||
| user_name :user | user_name :user | ||
| Line 34: | Line 34: | ||
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ||
| - | % Scd newDir [change to the SRB "newDir" directory] | + | % [[Scd]] newDir [change to the SRB "newDir" directory] |
| - | % Sput file_for_SRB . [put a local file "file_for_SRB" in "newDir"] | + | % [[Sput]] file_for_SRB . [put a local file "file_for_SRB" in "newDir"] |
| - | % Sls -l [list SRB "newDir" directory contents] | + | % [[Sls]] -l [list SRB "newDir" directory contents] |
| /home/user.sdsc/newDir: | /home/user.sdsc/newDir: | ||
| user 0 sdsc-unix-mi 12 2002-04-19-15.37 file_for_SRB | user 0 sdsc-unix-mi 12 2002-04-19-15.37 file_for_SRB | ||
| - | % Scd .. [move up one SRB directory] | + | % [[Scd]] .. [move up one SRB directory] |
| - | % Scp newDir/file_for_SRB . [copy "file_for_SRB" to the new directory] | + | % [[Scp]] newDir/file_for_SRB . [copy "file_for_SRB" to the new directory] |
| - | % Spwd [print SRB working directory] | + | % [[Spwd]] [print SRB working directory] |
| /home/user.sdsc | /home/user.sdsc | ||
| - | % Sls [list SRB home directory contents] | + | % [[Sls]] [list SRB home directory contents] |
| /home/user.sdsc: | /home/user.sdsc: | ||
| file_for_SRB | file_for_SRB | ||
| C-/home/user.sdsc/newDir | C-/home/user.sdsc/newDir | ||
| - | % SgetD file_for_SRB [display information about "file_for_SRB"] | + | % [[SgetD]] file_for_SRB [display information about "file_for_SRB"] |
| --------------------------- RESULTS ------------------------------ | --------------------------- RESULTS ------------------------------ | ||
| data_name :file_for_SRB | data_name :file_for_SRB | ||
| Line 66: | Line 66: | ||
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ||
| - | % Sget file_for_SRB . [write "file_for_SRB" to local machine] | + | % [[Sget]] file_for_SRB . [write "file_for_SRB" to local machine] |
| - | % Sexit [end SRB session] | + | % [[Sexit]] [end SRB session] |
| . | . | ||
| === Advanced Users === | === Advanced Users === | ||
| [[Advanced Scommands]] Tips | [[Advanced Scommands]] Tips | ||
Revision as of 22:59, 14 March 2006
Contents |
Introduction
Scommands are command line utilities that run in the Unix, Windows or Mac OS command shells. Most Scommand names are preceded by an "S". These are Unix-like commands for accessing SRB data and metadata.
Build
The Scommands can be built as a part of the complete SRB Build or as a client oly built http://www.sdsc.edu/srb/tarfiles/SRB3_4_0client.tar which is unencrypted and contains a subset of the SRB3.4.0 release.See the README file for build instructions. After the built, the Scommand executables can be found in the utilitis/bin directory.
Scommands Usage Help
For more detailed information on individual commands, read the Scommands Manpages online or in the $installDir/utilities/man directory of the software release.
Getting started
Setting up the client user environment
Before running any Scommands, the client's User Environment must be set up using the instrustions given in - [User Environment]].
Simple Examples of Scommands
The following is an example of an SRB session. Standard Unix commands (ls, pwd, cd, etc.) will still work for your local machine during all SRB sessions.
% Sinit [start a new SRB session]
% Smkdir newDir [make an SRB directory "newDir"]
% SgetColl -ahc newDir [display information about "newDir"]
RESULTS ------------------------------
user_name :user access_constraint :all data_grp_name :/home/user.sdsc/newDir
% Scd newDir [change to the SRB "newDir" directory]
% Sput file_for_SRB . [put a local file "file_for_SRB" in "newDir"]
% Sls -l [list SRB "newDir" directory contents] /home/user.sdsc/newDir:
user 0 sdsc-unix-mi 12 2002-04-19-15.37 file_for_SRB
% Scd .. [move up one SRB directory]
% Scp newDir/file_for_SRB . [copy "file_for_SRB" to the new directory]
% Spwd [print SRB working directory] /home/user.sdsc
% Sls [list SRB home directory contents] /home/user.sdsc:
file_for_SRB C-/home/user.sdsc/newDir
% SgetD file_for_SRB [display information about "file_for_SRB"]
RESULTS ------------------------------
data_name :file_for_SRB data_typ_name :generic path_name :/misc/srb/srb/SRBVault/user.sdsc/48/17/file_for_srb data_grp_name :/home/user.sdsc data_size :12 phy_rsrc_name :sdsc-unix-misc container_name : offset :0
% Sget file_for_SRB . [write "file_for_SRB" to local machine]
% Sexit [end SRB session] .
Advanced Users
Advanced Scommands Tips


