mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
More >&1 cleanups
This commit is contained in:
parent
3df65f8499
commit
1aecb8d2ff
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.4 2000/01/19 20:08:27 petere Exp $
|
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.5 2000/03/25 14:44:41 momjian Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
CMDNAME=`basename $0`
|
CMDNAME=`basename $0`
|
||||||
@ -41,7 +41,7 @@ if [ `uname` = 'Linux' ]; then
|
|||||||
ipcs_lpid=
|
ipcs_lpid=
|
||||||
did_anything=
|
did_anything=
|
||||||
|
|
||||||
if ps x | grep -s 'postmaster' >& /dev/null ; then
|
if ps x | grep -s 'postmaster' >/dev/null 2>&1 ; then
|
||||||
echo "$CMDNAME: You still have a postmaster running."
|
echo "$CMDNAME: You still have a postmaster running."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -60,7 +60,7 @@ if [ `uname` = 'Linux' ]; then
|
|||||||
# Don't do anything if process still running.
|
# Don't do anything if process still running.
|
||||||
# (This check is conceptually phony, but it's
|
# (This check is conceptually phony, but it's
|
||||||
# useful anyway in practice.)
|
# useful anyway in practice.)
|
||||||
ps hj$ipcs_pid >& /dev/null
|
ps hj$ipcs_pid >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "skipped. Process still exists (pid $ipcs_pid)."
|
echo "skipped. Process still exists (pid $ipcs_pid)."
|
||||||
else
|
else
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
foreach s (*.sql)
|
foreach s (*.sql)
|
||||||
echo "===> $s";
|
echo "===> $s";
|
||||||
psql -q -e -n $USER < $s >& $s.out;
|
psql -q -e -n $USER < $s > $s.out 2>&1;
|
||||||
diff $s.out results/$s.out;
|
diff $s.out results/$s.out;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user