1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/perl -w use strict; use FS::UID qw(adminsuidsetup dbh); my $user = shift or die &usage; adminsuidsetup($user); print "pg_server_version: ". dbh->{'pg_server_version'}. "\n"; sub usage { "\n\nUsage: pg-version username\n"; };