Copy the script to the specified directory – HP B6960-90078 User Manual
Page 745

Further Information
Example of Scheduled Eject of Media
Appendix A
A-15
given in the next section. The script (HP-UX and Solaris systems) or
the starting batch file (Windows systems) must reside in the
/opt/omni/lbin
(HP-UX and Solaris systems) or
(Windows systems) directory.
On Windows systems, the contents of the batch file containing
command for starting the script is:
"
6. Click the
>>
button to add this recipient. Click
Finish
.
The Report Group is now scheduled and configured.
Copy the Script to the Specified Directory
Copy or create the script with the name
omnirpt_eject.pl
in the
/opt/omni/lbin
(HP-UX and Solaris systems) or
directory (Windows systems).
#!/usr/contrib/bin/perl
#=======================================================
========================
# FUNCTION Library_Eject
#
# ARGUMENTS param 1 = Library to eject from
# param 2 = Slots to eject
#
# DESCRIPTION Function ejects specified slots from
specified library
#=======================================================
========================
sub Library_Eject {
local ($lib,$slots)=@_;
print "[Normal] Ejecting slot(s) ${slots}from
library \"$lib\"\n";
print("[Normal] Executing \"${OMNIBIN}omnimm\"
-eject \"$lib\" $slots\n");