#!/bin/sh
#
# This is a sh wrapper around the NEgraf program, to try to
# diagnose startup problems when called from NetView.
#

#exec >/tmp/ne_graf.out 2>&1
D=/usr/usr/ndc

echo `date` started.
echo ' '
echo 'Environment:'
env
echo ' '
echo ' Cwd:' `pwd`
echo 'Home:' $HOME
echo 'Path:' $PATH
echo ' '
echo 'Args:' $*
echo ' '

D_NEgraf=1
export D_NEgraf

cd $D
NEgraf $*

sleep 1000
echo `date` done.
