ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
- awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
+ awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
if [ -s /tmp/tmp.$$ ]
then
- awk '{print "kill", $1}' /tmp/tmp.$$ | /bin/csh
+ awk '{print "kill", $1}' /tmp/tmp.$$ | /bin/sh
sleep $die_time # wait for it to die
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
if [ -s /tmp/tmp.$$ ]
then
- awk '{print "kill -3", $1}' /tmp/tmp.$$ | /bin/csh
+ awk '{print "kill -3", $1}' /tmp/tmp.$$ | /bin/sh
sleep $die_time # wait for it to die
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
if [ -s /tmp/tmp.$$ ]
then
- awk '{print "kill -9", $1}' /tmp/tmp.$$ | /bin/csh
+ awk '{print "kill -9", $1}' /tmp/tmp.$$ | /bin/sh
fi
rm /tmp/tmp.$$
fi
-#!/bin/csh
+#!/bin/sh
#
# A script that aids in debugging and testing dtmail
#
-if ( `uname -s` != SunOS ) then
+if [ `uname -s` != SunOS ]
+ then
echo "Only support SunOS"
exit 1
endif
-set echo
-setenv DT_MAIL /home/dougr/INBOX
-setenv DEFAULT_BACKEND Bento
-setenv LD_LIBRARY_PATH ../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
+
+export DT_MAIL=$HOME/INBOX
+export DEFAULT_BACKEND=Bento
+export LD_LIBRARY_PATH=../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
ldd -r dtmail
-if ( -f core ) then
+if [ -f core ]
+ then
exec debugger dtmail core &
else
exec debugger dtmail &
-#!/bin/csh
+#!/bin/sh
#
# A script that aids in debugging and testing dtmail
#
-if ( `uname -s` != SunOS ) then
+if [ `uname -s` != SunOS ]
+ then
echo "Only support SunOS"
exit 1
endif
-set echo
-setenv LD_LIBRARY_PATH ../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
ldd -r dtmail
-setenv ARGS "$*"
-if ( -f core ) then
+export ARGS="$*"
+if [ -f core ]
+ then
exec debugger dtmail core &
else
exec debugger dtmail &
#!/bin/csh -f
-set echo
#
# A script that aids in debugging and testing dtmail
#
-if ( `uname -s` != SunOS ) then
+if [ `uname -s` != SunOS ]
+ then
echo "Only support SunOS"
exit 1
endif
-setenv DT_MAIL /home/dougr/INBOX
-setenv DEFAULT_BACKEND Bento
-setenv LD_LIBRARY_PATH ../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
+export DT_MAIL=$HOME/INBOX
+export DEFAULT_BACKEND=Bento
+export LD_LIBRARY_PATH=../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
ldd -r ./dtmail
exec dtmail &
-#!/bin/csh -f
+#!/bin/sh -f
#
# A script that aids in debugging and testing dtmail
#
-if ( `uname -s` != SunOS ) then
+if [ `uname -s` != SunOS ]
+ then
echo "Only support SunOS"
exit 1
endif
-set echo
#setenv DEFAULT_BACKEND RFC-MIME
-setenv LD_LIBRARY_PATH ../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
ldd -r ./dtmail
exec ./dtmail $* &