Air Cleaner User Manual

sbscript
Purpose
Creates, updates, or removes a shell script containing the commands to execute.
Syntax
 sbscript -o
-r
-l
-s scriptname
-D description
Command
-c command

Description
Used to create, update, or remove a shell script containing one or more commands
to execute. When creating or updating a script, you can type the command name
or specify it using the -c flag.
Flags
-o Overwrites existing script name, if it exists.
-r Removes script name, if it exists.
-l Lists currently defined scripts.
-s scriptname
Name of the script to create, update, or remove.
-D description
Describes the shell script.
Command
Specifies the command or commands contained in the shell script. Separate the
commands using spaces.
-c command
Specifies the command or commands contained in the shell script. Commands
must be inside double quotation marks.
Examples
Use the following syntax to create a shell script called system_backup that will be
a full system backup:
sbscript -s system_backup -D "System Backup -c "sysback -vf /dev/rmt0 sbvg vg01"
The following script is created:
#!bin/ksh
#
# Description: System Backup
#
sysback –vf /dev/rmt0 sbvg vg02
rc=$?
exit $rc
A file in /usr/lpp/sysback/scripts/.toc_script is also updated. The format of the file
is as follows:
A-74 IBM Tivoli Storage Manager for System Backup and Recovery: Installation and Users Guide