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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ DEFAULT_PRINTER="DtPrint"
|
|||
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
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ XCOMM ######################################################################
|
|||
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
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ XCOMM ###############################################################
|
|||
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
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ DEFAULT_PRINTER="DtPrint"
|
|||
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
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ XCOMM ######################################################################
|
|||
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
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ XCOMM ######################################################################
|
|||
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
|
||||
|
|
|
|||
|
|
@ -17,17 +17,17 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue