#!/bin/bash # # Try to read a syslog file and store in a database that does not exist. # gcm_input should return an error and save the input in an XML file. rm -f gcm_input.log createdb gnucomo_test result=1 if psql gnucomo_test -q <../src/database/create.sql >/dev/null then psql gnucomo_test -q -c "insert into object (objectname) values ('example1.gnucomo.test')" ../src/gcm_input/gcm_input -c gnucomo_nodb -h example1.gnucomo.test -d 'sep 5 2002 20:30:45'