#!/bin/csh -f # # runquiet eliminates standard error messages from the output # of programs. Usage: runquiet program_name # This is the old version which writes to /dev/tty. # #( $* > /dev/tty ) > & /dev/null # This version below has the advantage of writing to stdio instead of /dev/tty, so # that the output can be piped. # ( $* | sed s/^/%%%runquiet%%%/ ) | & grep '^%%%runquiet%%%' | sed s/^%%%runquiet%%%//