You know, you can also say":
q drmedia ... CMDFILE=/tmp/checkout.txt CMD=&VOL&NL

which makes a nice one-volume-per-line files suitable for input to other
scripts.


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED]]On Behalf Of
Gill, Geoffrey L.
Sent: Friday, April 20, 2001 12:02 PM
To: [EMAIL PROTECTED]
Subject: redirect output(Update)


Here is the problem(UPDATE), maybe I wasn't clear enough. Yes I can run a
query or whatever and have the output redirected to a file if I run it from
a command prompt. I am having problems trying to run it from a TSM server
command script with the administrative command scheduler kicking it off.

The TSM server command "Tape_Checkout":
query drmedia * wherestate=mo source=dbsnapshot > /tmp/checkout.txt
move drmedia * wherestate=mo remove=yes tostate=courier source=dbsnapshot

The first part of the script fails for the redirection output to a file, the
second part works. I would like to run this through the TSM Scheduler for
simplicity but maybe it is not possible to create an output file this way.

Thanks again,

Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:   [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (888) 997-9614

Reply via email to