On Fri, 2015-12-04 at 19:35 +0000, Ian Jackson wrote: > This is for (non-standalone-mode) shell scripts which want to access > the postgresql database. > > get_psql_command provides `-v ON_ERROR_STOP' because it is not the > default (!) and no sane caller would not want it. > > No callers as yet. > > Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
Acked-by: Ian Campbell <ian.campb...@citrix.com> (one query below) > --- > cri-getconfig | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/cri-getconfig b/cri-getconfig > index ee1cc40..48528b5 100644 > --- a/cri-getconfig > +++ b/cri-getconfig > @@ -40,6 +40,37 @@ getrepos() { > echo $repos > } > > +get_psql_cmd () { > + perl -we ' > + use Osstest; > + use Osstest::Executive; > + use DBI; > + csreadconfig(); > + print "psql", > + " -d ", $dbh_tests->{pg_db}, > + " -h ", $dbh_tests->{pg_host}, > + " -p ", $dbh_tests->{pg_port}, > + " -U ", $dbh_tests->{pg_user}, I suppose none of those can (or at least should) contain any weird quote- requiring chars etc? > # Good grief, handling background proceesses from shell is a pain. I just spotted a typo here "proceesses". Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel