head 1.2; access; symbols release_4_2:1.2 aix_ok:1.2; locks; strict; comment @# @; 1.2 date 93.07.10.04.31.17; author aoki; state Exp; branches; next 1.1; 1.1 date 93.07.02.03.31.00; author aoki; state Exp; branches; next ; desc @@ 1.2 log @unified the ipcclean's; hardwired executables replaced by PATHs configured in the Makefile. (some systems, like linux, use different ipc{s,rm} switches so we can't just eliminate the different copies :-/) @ text @#!/bin/sh # # $Header: /home2/aoki/postgres/src/bin/ipcclean/RCS/ipcclean.sh,v 1.1 1993/07/10 04:22:26 aoki Exp $ # PATH=_fUnKy_IPCCLEANPATH_sTuFf_:$PATH export PATH ipcs | egrep '^m .*|^s .*' | egrep "`whoami`|postgres|picasso" | \ awk '{printf "ipcrm -%s %s\n", $1, $2}' '-' | sh @ 1.1 log @Initial revision @ text @d3 1 a3 1 # $Header$ d5 4 a8 12 IPCS=/bin/ipcs AWK=/usr/bin/awk $IPCS | egrep '^m .*|^s .*' | egrep "`whoami`|postgres|picasso" | \ $AWK '{printf "ipcrm -%s %s\n", $1, $2}' '-' > /tmp/ipcclean.$$ chmod +x /tmp/ipcclean.$$ if (test -s /tmp/ipcclean.$$) then /tmp/ipcclean.$$ fi rm -f /tmp/ipcclean.$$ @