#!/bin/sh
#
# shell script to use a command that print the all results in stderr
#
# Check the status and return it on stderr
# and the result on stdout
#
# It's typically used for the dump/mt programs
#
# G. ROBERT 07.1995
 
script_command=$0
command=$@
 
$command 2>&1
exit_status=$?
 
if [ "$exit_status" != "0" ]
then
        echo " ERROR: Exit status: $exit_status"
fi
