dbprocs

Russ Allbery rra at stanford.edu
Thu Apr 13 04:54:35 UTC 2000


Kenichi Okada <okada at opaopa.org> writes:

> I use Solaris 2.5.1.
> The command `dbprocs' don't work correctory.

> syntax error: `(' unexpected

Yeah, after looking at it I just wrote the same patch.  It doesn't look
like using $() instead of `` is portable, and I don't think there's
anything gained from the former.  I'm going to go ahead and commit this
patch before I spin the release branch; we can fix it again if it turns
out to be the wrong fix.

diff -u -r1.1 dbprocs.in
--- dbprocs.in  2000/01/14 03:43:44     1.1
+++ dbprocs.in  2000/04/13 04:52:25
@@ -17,13 +17,13 @@
 stop)
 
   if [ -f $PATHRUN/db_checkpoint.pid ]; then
-    kill $(cat $PATHRUN/db_checkpoint.pid)
+    kill `cat $PATHRUN/db_checkpoint.pid`
   fi
   if [ -f $PATHRUN/db_deadlock.pid ]; then
-    kill $(cat $PATHRUN/db_deadlock.pid)
+    kill `cat $PATHRUN/db_deadlock.pid`
   fi
   if [ -f $PATHRUN/logremover.pid ]; then
-    kill -HUP $(cat $PATHRUN/logremover.pid)
+    kill -HUP `cat $PATHRUN/logremover.pid`
   fi
   sleep 5
   # run one more checkpoint just to make sure

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list