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.
This option is valid for all clients. The Tivoli® Storage Manager client API does not support this option. The server can also define this option.
Place this option in the dsm.sys file within a server stanza. You can set this option on the Scheduler tab, in the Schedule Command dialog box in the Preferences editor.
Place this option in the client options file (dsm.opt). You can set this option on the Scheduler tab, in the Schedule Command dialog box in the Preferences editor.
If the command string contains blanks, enclose the command string in quotation marks. If you placed quotation marks within the command string, then enclose the entire command string in single quotation marks.
Specify the command string just as you would enter it from the operating system command prompt; if the string you specify would require quotation marks to run it at a Windows prompt, include the quotation marks as needed. If the command string contains any blank spaces, enclose the command string in single quotation marks.
'net stop someservice'
presc 'rename "c:\myapp\log file.log" "log file.old"'
Use a blank or null string for cmdstring if you want to prevent any commands from running that the Tivoli Storage Manager server 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.
preschedulecmd osascript "/Volumes/La Pomme/Scripting/
Database Script"
preschedulecmd "<the quiesce command of your database product>
database"
The command string is a valid command for quiescing your database.
presc stopdb.cmd
presc 'rename c:\myapp\logfile.log logfile.old'
presc 'net stop "simple service"'
presc 'rename "c:\myapp\log file.log" "log file.old"'
presc '"C:\Program Files\MyTools\runreport.bat"
log1.in log2.in'
This option is valid only on the initial command line. It is not valid in interactive mode.