Scat

From SRB

Revision as of 18:27, 7 March 2006; view current revision
←Older revision | Newer revision→

Contents

NAME

Scat - concatenate and display files read from SRB space


SYNOPSIS

Scat [-X][-C n] [-T ticket] [-V versionString] [-A condition] srbObj ...

Scat [-aChlX] [-c condition]


DESCRIPTION

Scat reads each srbObj from SRB space and writes it on the standard output. With -C option, one can read a particular copy of srbObj, if it exists. With -A option, only srbObj which conforms to the condition are chosen.

The second synopsis applies the condition and writes the resulting objects to standard out.

If using a ticket, one need not give a srbObj name if the ticket is issued for a particular dataset.

If any srbObj is replicated then only one of the copies is displayed.

The user should have at least 'read' permission for each SrbObj or a ticket (for user or 'ticketuser' id) to access the SrbObj.

The srbObj argument can be a path name in the SRB collection hierarchy.

OPTIONS

-h
displays command options
-C
n is an integer denoting which COPY of the object to be accessed.
-T
to give a filename containing a ticket
-t
option for giving a ticket directly
-X
Query using the Master MCAT. The default uses the Slave MCAT (unless the "masterMcat" environment variable is set) if configured.
-V
is a string denoting the version of the object to be accessed
-A
condition option is an '&' separated condition which will be applied in choosing the object to be accessed. The separated condition is of the form "<Attr> <CompOp> <Value>", where <Attr> is an MCAT attribute found by Sattrs command, <CompOp> is a comparison operator and <Value> is a numeric or string value. The entire condition should be within a set of double quotes. Example: Scat -A "COPY = 0"
-c
condition option applies to the whole SRB system instead of relative to the current working collection. Example: Scat -c "GUID='123'" will write the objects that haa their Guid set to 123. See Sattrs for details of applicable conditions.

SEE ALSO

Sticket Sattrs