#!/bin/bash # # Create an object 'test.gnucomo.org' in the database and # and read several filesystems report created by df. 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 ('test.gnucomo.org')" # read the output from 'df -k' echo "Read output from 'df -k'" ../src/gcm_input/gcm_input -v -c gnucomo_test -h test.gnucomo.org -d 'sep 7 2007 13:20:45'