#!/bin/sh

# create the necessary function and table

psql -U postgres -f testnot.sql postgres 2>/dev/null

# run the NOTIFY program

./testnot2.pl &

# run the LISTERer

./testnot1.pl

# kill the NOTIFY program
kill $!
