#!/bin/bash IDLTMP=/tmp/nxidl.$$ test=$1 echo $test idl << EOF > $IDLTMP 2>&1 print, 'starting napi test' write_test, $test read_test, $test print, 'finished napi test' EOF # need to remove IDL startup infomation as this is different on each machine # also remove file_time as it will be different every time sed -n -e '/^NeXus IDL Api Write test/,/^finished napi test/ p' < $IDLTMP | sed -e '/file_time/,/attribute value/ d' rm -f $IDLTMP