Examples: Blank spaces in file names in schedule definitions
When you define or update a schedule objects parameter or the schedule options parameter with file specifications that contain blank spaces, put quotation marks (") around each file specification that contains blanks, then add single quotes (') around the entire specification.
The following examples
show how to delimit schedule object parameters
when file specifications contain space characters:
objects=’"/home/proj1/Some file.doc"’
objects=’"/home/proj1/Some file.doc" "/home/Another file.txt" /home/noblanks.txt’
objects=’"/home/My Directory With Blank Spaces/"’
objects=’"/Users/user1/Documents/Some file.doc"’
objects=’"/Users/user1/Documents/Some file.doc"
"/Users/user5/Documents/Another file.txt" /Users/user3/Documents/noblanks.txt’
objects=’"/Users/user1/My Directory With Blank Spaces/"’
This
syntax ensures that a file specification containing a space, such
as /home/proj1/Some file.doc, is treated as a
single file name, and not as two separate files (/home/proj1/Some,
and file.doc). The following examples
show how to delimit schedule options parameters
when file specifications contain space characters:
options='-preschedulecmd="/home/me/my files/bin/myscript"
-postschedulecmd="/home/me/my files/bin/mypostscript" -quiet'
options='-presched="/home/me/my files/bin/precmd" -postsched=finish'
The following examples show how to delimit schedule object parameters
when file specifications contain space characters:
objects=’"c:\home\proj1\Some file.doc"’
objects=’"c:\home\proj1\Some file.doc" "c:\home\Another file.txt"
c:\home\noblanks.txt’
objects=’"c:\home\My Directory With Blank Spaces\"’
objects=’"c:\Users\user1\Documents\Some file.doc"’
objects=’"c:\Users\user1\Documents\Some file.doc"
"c:\Users\user5\Documents\ Another file.txt" c:\Users\user3\Documents\noblanks.txt’
objects=’"c:\Users\user1\My Directory With Blank Spaces\"’
This syntax ensures that a file specification containing
a space, such as c:\home\proj1\Some file.doc,
is treated as a single file name, and not as two separate files (c:\home\proj1\Some,
and file.doc)The following examples show how to delimit schedule options parameters
when file specifications contain space characters:
options='-preschedulecmd="c:\home\me\my files\bin\myscript"
-postschedulecmd="c:\home\me\my files\bin\mypostscript" -quiet'
options='-presched="c:\home\me\my files\bin\precmd" -postsched=finish'
You can also refer to the objects and options parameter information for the DEFINE SCHEDULE and UPDATE SCHEDULE commands. For descriptions of these commands and parameters, see the Tivoli® Storage Manager server documentation..