summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0bc3b8)
raw | patch | inline | side by side (parent: c0bc3b8)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 3 Oct 2006 07:52:51 +0000 (07:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 3 Oct 2006 07:52:51 +0000 (07:52 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@903 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrdupdate.c | [new file with mode: 0644] | patch | blob |
diff --git a/src/rrdupdate.c b/src/rrdupdate.c
--- /dev/null
+++ b/src/rrdupdate.c
@@ -0,0 +1,35 @@
+/*****************************************************************************
+ * RRDtool 1.2.15 Copyright by Tobi Oetiker, 1997-2006
+ *****************************************************************************
+ * rrdupdate.c Main program for the (standalone) rrdupdate utility
+ *****************************************************************************
+ * $Id$
+ *****************************************************************************/
+
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
+#include "../win32/config.h"
+#else
+#ifdef HAVE_CONFIG_H
+#include "../rrd_config.h"
+#endif
+#endif
+
+#include "rrd.h"
+
+int
+main(int argc, char **argv){
+ rrd_update(argc,argv);
+ if (rrd_test_error()) {
+ printf("RRDtool " PACKAGE_VERSION " Copyright by Tobi Oetiker, 1997-2005\n\n"
+ "Usage: rrdupdate filename\n"
+ "\t\t\t[--template|-t ds-name:ds-name:...]\n"
+ "\t\t\ttime|N:value[:value...]\n\n"
+ "\t\t\tat-time@value[:value...]\n\n"
+ "\t\t\t[ time:value[:value...] ..]\n\n");
+
+ printf("ERROR: %s\n",rrd_get_error());
+ rrd_clear_error();
+ return 1;
+ }
+ return 0;
+}