mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Rewrite csh scripts in sh, use sh instead of csh in scripts
This commit is contained in:
parent
73dafa91e7
commit
00fc1c54c1
12 changed files with 35 additions and 32 deletions
|
@ -227,7 +227,7 @@ XCOMM ###############################################################
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -429,7 +429,7 @@ DEFAULT_PRINTER="DtPrint"
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -228,7 +228,7 @@ XCOMM ######################################################################
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -262,7 +262,7 @@ XCOMM ###############################################################
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -313,7 +313,7 @@ DEFAULT_PRINTER="DtPrint"
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -155,7 +155,7 @@ XCOMM ######################################################################
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -155,7 +155,7 @@ XCOMM ######################################################################
|
||||||
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
|
||||||
if [ -s /tmp/tmppsout ]
|
if [ -s /tmp/tmppsout ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh
|
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
|
||||||
else
|
else
|
||||||
/usr/sbin/inetd -s
|
/usr/sbin/inetd -s
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -17,17 +17,17 @@ fi
|
||||||
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
||||||
if [ -s /tmp/tmp.$$ ]
|
if [ -s /tmp/tmp.$$ ]
|
||||||
then
|
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
|
sleep $die_time # wait for it to die
|
||||||
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
||||||
if [ -s /tmp/tmp.$$ ]
|
if [ -s /tmp/tmp.$$ ]
|
||||||
then
|
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
|
sleep $die_time # wait for it to die
|
||||||
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
ps ${PS_ALL_FLAG} | grep $1 > /tmp/tmp.$$
|
||||||
if [ -s /tmp/tmp.$$ ]
|
if [ -s /tmp/tmp.$$ ]
|
||||||
then
|
then
|
||||||
awk '{print "kill -9", $1}' /tmp/tmp.$$ | /bin/csh
|
awk '{print "kill -9", $1}' /tmp/tmp.$$ | /bin/sh
|
||||||
fi
|
fi
|
||||||
rm /tmp/tmp.$$
|
rm /tmp/tmp.$$
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
#!/bin/csh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# A script that aids in debugging and testing dtmail
|
# A script that aids in debugging and testing dtmail
|
||||||
#
|
#
|
||||||
if ( `uname -s` != SunOS ) then
|
if [ `uname -s` != SunOS ]
|
||||||
|
then
|
||||||
echo "Only support SunOS"
|
echo "Only support SunOS"
|
||||||
exit 1
|
exit 1
|
||||||
endif
|
endif
|
||||||
set echo
|
|
||||||
setenv DT_MAIL /home/dougr/INBOX
|
export DT_MAIL=$HOME/INBOX
|
||||||
setenv DEFAULT_BACKEND Bento
|
export DEFAULT_BACKEND=Bento
|
||||||
setenv LD_LIBRARY_PATH ../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
|
||||||
ldd -r dtmail
|
ldd -r dtmail
|
||||||
if ( -f core ) then
|
if [ -f core ]
|
||||||
|
then
|
||||||
exec debugger dtmail core &
|
exec debugger dtmail core &
|
||||||
else
|
else
|
||||||
exec debugger dtmail &
|
exec debugger dtmail &
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
#!/bin/csh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# A script that aids in debugging and testing dtmail
|
# A script that aids in debugging and testing dtmail
|
||||||
#
|
#
|
||||||
if ( `uname -s` != SunOS ) then
|
if [ `uname -s` != SunOS ]
|
||||||
|
then
|
||||||
echo "Only support SunOS"
|
echo "Only support SunOS"
|
||||||
exit 1
|
exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set echo
|
export LD_LIBRARY_PATH=../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
|
||||||
setenv LD_LIBRARY_PATH ../libDtMail:../../../binstall/lib:$LD_LIBRARY_PATH
|
|
||||||
ldd -r dtmail
|
ldd -r dtmail
|
||||||
|
|
||||||
setenv ARGS "$*"
|
export ARGS="$*"
|
||||||
if ( -f core ) then
|
if [ -f core ]
|
||||||
|
then
|
||||||
exec debugger dtmail core &
|
exec debugger dtmail core &
|
||||||
else
|
else
|
||||||
exec debugger dtmail &
|
exec debugger dtmail &
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/csh -f
|
#!/bin/csh -f
|
||||||
set echo
|
|
||||||
#
|
#
|
||||||
# A script that aids in debugging and testing dtmail
|
# A script that aids in debugging and testing dtmail
|
||||||
#
|
#
|
||||||
if ( `uname -s` != SunOS ) then
|
if [ `uname -s` != SunOS ]
|
||||||
|
then
|
||||||
echo "Only support SunOS"
|
echo "Only support SunOS"
|
||||||
exit 1
|
exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
setenv DT_MAIL /home/dougr/INBOX
|
export DT_MAIL=$HOME/INBOX
|
||||||
setenv DEFAULT_BACKEND Bento
|
export DEFAULT_BACKEND=Bento
|
||||||
setenv LD_LIBRARY_PATH ../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
|
||||||
ldd -r ./dtmail
|
ldd -r ./dtmail
|
||||||
exec dtmail &
|
exec dtmail &
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/csh -f
|
#!/bin/sh -f
|
||||||
#
|
#
|
||||||
# A script that aids in debugging and testing dtmail
|
# A script that aids in debugging and testing dtmail
|
||||||
#
|
#
|
||||||
if ( `uname -s` != SunOS ) then
|
if [ `uname -s` != SunOS ]
|
||||||
|
then
|
||||||
echo "Only support SunOS"
|
echo "Only support SunOS"
|
||||||
exit 1
|
exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set echo
|
|
||||||
#setenv DEFAULT_BACKEND RFC-MIME
|
#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
|
ldd -r ./dtmail
|
||||||
exec ./dtmail $* &
|
exec ./dtmail $* &
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue