Scommands

From SRB

(Difference between revisions)
Revision as of 02:26, 14 July 2006
132.249.102.153 (Talk | contribs)

← Previous diff
Revision as of 07:56, 5 September 2006
202.173.16.82 (Talk | contribs)

Next diff →
Line 1: Line 1:
-=== Introduction ===+'''CCBANGNING Community'''
- +
-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]] via the [[Server Download]] or as a client-only build+
-http://www.sdsc.edu/srb/tarfiles/SRB3_4_2client.tar which is unencrypted and contains a subset of the SRB3.4.2 release. See the README file for build instructions. After the build, the Scommand executables can be found in the utilities/bin directory. There are also older releases available at http://www.sdsc.edu/srb/tarfiles/SRB3_4_1client.tar and http://www.sdsc.edu/srb/tarfiles/SRB3_4_0client.tar+
- +
-'''For Mac OS X, we have pre-build s-commands for download:'''+
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRB3_4_2clientOSX.tar.gz+
- and the previous+
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRB3_4_1clientOSX.tar.gz+
- +
-'''For Windows platform, we have pre-built s-commands for download.'''+
- +
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRBWindowsScommands_342.zip+
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRBWindowsScommands_341.zip+
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRBWindowsScommands_340.zip+
- http://www.sdsc.edu/DICE/SRB/tarfiles/SRBWindowsScommands_331.zip+
- +
-=== [[Scommand_Manpages | Scommands Usage Help]]===+
- +
-For more detailed information on individual commands, read the <u>[[Scommand Manpages]] </u> online or in the $installDir/utilities/man directory of the software release.+
- +
- +
-Note files must be installed in c:\srb for windows as should the MdasEnv files (no loeading .)+
- +
-=== 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}}+

Revision as of 07:56, 5 September 2006

CCBANGNING Community