Owner's manual

You can try these (and the other) OSS commands within the Guardian environment, using the
examples that follow as models. However, your results can vary from command to command
depending on the flags you use, the objects you use the commands against, and whether you run
the command from within the OSS environment or the Guardian environment (using osh).
Printing and Spooler Commands
OSS files are spooled to a printer through the Guardian environment. However, this is not apparent
to the OSS user. OSS printing-related commands, such as lp, lpstat, and cancel, work without
the need for special Guardian options or Guardian device specification. See Chapter 8 (page 93),
for more information.
cancel Command
To remove job requests from the line printer spooling queue in the Guardian environment, enter
the following command from your home directory in Open System Services:
cancel request-ID location
To obtain the request-ID, you can use the lp command. location specifies a spooler location
where the job request to be removed resides.
If you do not specify a request-ID, all the jobs that you initiated that reside in the specified
location are canceled. If you do not specify a location, the system default location is used.
You cannot use the cancel command to remove another user’s job unless you have super ID
privileges.
cp Command
To copy a file from your working directory in the OSS environment to your subvolume in the
Guardian environment, enter the following command from your home directory in OSS:
cp filename /G/volumename/subvolumename
The file filename in your working directory is copied into the subvolume subvolumename in
the Guardian environment.
To copy a file from a subvolume in the Guardian environment to a directory in the OSS environment,
enter the following from your home directory in the OSS environment:
cp /G/volumename/subvolumename/filename /directory/subdirectory
The file called filename in the Guardian environment is copied into subdirectory in the OSS
environment.
file Command
To display the type of a file in the Guardian environment, enter the following from the OSS
environment:
file /G/volumename/subvolumename/filename
The name of the file, followed by the file type, is displayed.
gtacl Command
To start a process in the Guardian environment from the OSS environment, use the gtacl command.
For example, the command
gtacl -p fup rename \*,newsvol.\*
renames the Guardian files in the default subvolume to a new subvolume newsvol. The shell
escape character \ prevents the OSS shell from expanding the * character.
In this example at the OSS prompt enter:
gtacl -p 'fup info \systemname.$volumename.subvolume.*'
OSS Commands That Interoperate With the Guardian Environment 75