ADSM-L

Script question

2002-07-09 11:02:00
Subject: Script question
From: "Stephen A. Cochran" <stephen.a.cochran.lists AT CAHIR DOT NET>
Date: Tue, 9 Jul 2002 11:00:16 -0400
Hopefully a simple question:

I have a select script that finds the tapes I want to be processed by
MOV DRM, is there a way to pipe the results from the select back into
that command? Here's the select:

select volume_name,state from drmedia where (volume_name in (select
volume_name from volumes where status='FULL') and state='MOUNTABLE') or
volume_name in (select volume_name from libvolumes where
last_use='DbBackup')

And I want the volumes returned from that to be processed by MOV DRM.

The other option would be outputting to a tmp file and creating a
command for each volume, but that seems more complicated than it should
be.

Steve Cochran
Dartmouth College
<Prev in Thread] Current Thread [Next in Thread>