If you don't mind polling or there being a delay then you could run a script 
like this:

# Poll every 30 seconds
RDRS=`vmur list | grep <optional filtering>`
while [ -z "${RDRS}" ]
do
        sleep 30s
        RDRS=`vmur list | grep <optional filtering>`
done
RDR=($RDRS)
# ${RDR[n]} contains the results - you could then extract ids
ORDER=""
for (( i=0; i<${#RDR[@]}; i++ ))
do
        FILE=`echo "${RDR[$i]} | awk '{print $2}'"\`
        ORDER="${ORDER} ${FILE}"
done


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to