aboutsummaryrefslogtreecommitdiff
path: root/src/bin/ipcclean/ipcclean.sh
blob: 64a01e062a5c6c2a820f4a6d6e26575df9c8d22d (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
#
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.2 1998/08/22 05:19:31 momjian Exp $
#
PATH=PG_OPT_IPCCLEANPATH_PARAM:$PATH
export PATH
ipcs | egrep '^m .*|^s .*' | egrep "`whoami`|postgres" | \
awk '{printf "ipcrm -%s %s\n", $1, $2}' '-' | sh