next up previous
Next: About this document Up: Examples Previous: Replacement for stagout

How one can use fmsh in the shell script?

#!/bin/csh
###
# Example 1. Select all datasets for run 0512 
###
set list=`fmsh ls "/RAW/R94A/0512/*" -g`

###
# Print all dataset names
##
foreach file ( $list ) 
   printf "Dataset: %s\n" $file
   ##
   # Stage tape
   ## 
   fmsh find $file my_file.ds -n
   do_something 
end



Predrag Buncic
Tue Dec 5 11:41:58 MET 1995