-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 30 Jan 2009 02:18:51 +0530 Gurjeet Singh <gurjeet.si...@enterprisedb.com> wrote:
> Reading up on 'Exit Status' section in > http://www.postgresql.org/docs/8.3/static/app-psql.html shows that it > will return 3 if ON_ERROR_STOP was set, and it was run using a script. > > So I guess you need to do it as: > > my $psql_cmd = "PGPASSWORD=" . $password . " psql -U " . > $user . " -h " . $host . " " . $database . " -v ON_ERROR_STOP= -f " . > $schema_deploy_file; > > HTH, Just what the doctor ordered. Thanks! Devan - -- Devan Goodwin <dgood...@redhat.com> Software Engineer Spacewalk / RHN Satellite Halifax, Canada 650.567.9039x79267 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmCVSAACgkQAyHWaPV9my7WbQCgiPkxH6WVYE2dq0r+VYYYZHPs hrkAoIUp3dfuxVyM8TlK/J0HTLJzuD9q =osah -----END PGP SIGNATURE----- _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel