![]() |
![]() |
System Administrator
The preschedulecmd option specifies a command that the client program processes before it runs a schedule. The client program waits for the command to complete before it starts the schedule.
If you do not want it to wait, specify prenschedulecmd.
Notes:
Preferences File
Place this option in the TSM System Preferences file.
Syntax
>>-+-PRESchedulecmd--+-- "cmdstring"--------------------------->< '-PRENSchedulecmd-'
Parameters
Use a blank or null string for cmdstring if you want to prevent any commands from running that the administrator uses for postschedulecmd and preschedulecmd. If you specify a blank or null string on either option, it prevents the administrator from using a command on both options.
If your administrator uses a blank or null string on the preschedulecmd option, you cannot run a pre-schedule command.
If the command string contains blanks, enclose the command string in double quotes. If you placed double quotes within the command string, then enclose the entire command string in single quotes.
The command string should specify an AppleScript to launch. If it is only a file name, such as "Database Script", the client program searches for this file in the Scripts folder inside the Tivoli Storage Manager folder. Otherwise, the command string should contain the full path of the file, such as:
"La Pomme:Scripting:Database Script" preschedulecmd stopdb.cmd preschedulecmd "rename c:\myapp\logfile.log logfile.old" preschedulecmd 'net stop "simple service"' preschedulecmd 'rename "c:\program files\myapp\log file.log" "log file.old"'
Examples
The command string is a valid command for quiescing your database.