[Veritas-bu] Capturing bpmedialist's command output ?
2005-11-02 04:46:21
Subject: |
[Veritas-bu] Capturing bpmedialist's command output ? |
From: |
jerome.meyer AT pax DOT ch (Jérôme Meyer) |
Date: |
Wed, 02 Nov 2005 10:46:21 +0100 |
Hi
I'm writing a shell script to know the tape's expiration date, like
this:
VARIABLE=$(bpmedialist -mlist -U -m $MEDIA_ID|tail +7|\awk '{print
$2}'|sed '/^ *$/d')
Output --> $VARIABLE=11/06/2005
Unfortunately, some tapes aren't in DB and produce no output in
$VARIABLE BUT they send this message in STDOUT like follow :
"requested media id was not found in NB media database and/or MM volume
database"
Which commands or functions can I use to capturing the STDOUT value?
Thanks
jm
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Capturing bpmedialist's command output ?,
Jérôme Meyer <=
|
|
|