Skip site navigation (1) Skip section navigation (2)

SVN Commit by dpage: r4186 - trunk/pgadmin3/xtra/pgagent

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4186 - trunk/pgadmin3/xtra/pgagent
Date: 2005-05-17 06:57:26
Message-ID: 200505170657.j4H6vQCX006241@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: dpage
Date: 2005-05-17 07:57:26 +0100 (Tue, 17 May 2005)
New Revision: 4186

Added:
   trunk/pgadmin3/xtra/pgagent/unix.cpp
Log:
Forgot to add a file

Added: trunk/pgadmin3/xtra/pgagent/unix.cpp
===================================================================
--- trunk/pgadmin3/xtra/pgagent/unix.cpp	2005-05-16 15:45:05 UTC (rev 4185)
+++ trunk/pgadmin3/xtra/pgagent/unix.cpp	2005-05-17 06:57:26 UTC (rev 4186)
@@ -0,0 +1,47 @@
+//////////////////////////////////////////////////////////////////////////
+//
+// pgAgent - PostgreSQL Tools
+// $Id$
+// Copyright (C) 2003-2005 The pgAdmin Development Team
+// This software is released under the Artistic Licence
+//
+// unix.cpp - pgAgent unix specific functions
+//
+//////////////////////////////////////////////////////////////////////////
+
+#include "pgAgent.h"
+
+#ifdef WIN32
+#error this file is for unix only!
+#endif
+
+void usage()
+{
+    printf(
+        "Usage:\n"
+        "pgagent [options] <connect-string>\n"
+        "options:\n"
+        "-t <poll time interval>\n"
+        "-r <retry period after connection abort (>=10s)>\n"
+        "-c <connection pool size (>=5)>\n"
+        );
+}
+
+
+
+int main(int argc, char **argv)
+{
+    if (argc < 2)
+    {
+        usage();
+        return 1;
+    }
+
+    setOptions(argc, argv);
+
+    DBconn *conn=DBconn::InitConnection(connectString);
+    if (!conn->IsValid())
+        fatal("connection not valid: " + conn->GetLastError());
+
+    return 0;
+}


pgadmin-hackers by date

Next:From: svnDate: 2005-05-17 13:32:25
Subject: SVN Commit by dpage: r4187 - trunk/pgadmin3/xtra/pgagent
Previous:From: svnDate: 2005-05-16 15:45:05
Subject: SVN Commit by dpage: r4185 - in trunk/pgadmin3: . xtra/pgagent xtra/pgagent/include

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group