Changeset 33963 for trunk/Ohana/src/opihi/dvo/remote.c
- Timestamp:
- May 30, 2012, 1:46:12 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/dvo/remote.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/Ohana/src/opihi/dvo/remote.c
r33662 r33963 1 1 # include "dvoshell.h" 2 2 # include <glob.h> 3 # define MAX_PATH_LENGTH 10243 # define DVO_MAX_PATH 1024 4 4 5 5 // functions to manage the remote hosts … … 8 8 int N; 9 9 10 int VERBOSE = FALSE; 11 if ((N = get_argument (argc, argv, "-v"))) { 12 remove_argument (N, &argc, argv); 13 VERBOSE = TRUE; 14 } 15 10 16 if (argc < 2) { 11 17 gprint (GP_ERR, "USAGE: remote (command)\n"); … … 13 19 gprint (GP_ERR, " options:\n"); 14 20 gprint (GP_ERR, " -v : verbose mode:\n"); 21 gprint (GP_ERR, "OR: remote -reload (uniquer)\n"); 15 22 return FALSE; 16 23 } … … 23 30 // with a set of vectors to load. 24 31 25 int VERBOSE = FALSE; 26 if ((N = get_argument (argc, argv, "-v"))) { 32 if ((N = get_argument (argc, argv, "-reload"))) { 27 33 remove_argument (N, &argc, argv); 28 VERBOSE = TRUE; 34 if (argc != 2) { 35 gprint (GP_ERR, "USAGE: remote -reload (uniquer)\n"); 36 gprint (GP_ERR, " (uniquer) is the element in the middle of the results file\n"); 37 gprint (GP_ERR, " eg: dvo.results.XXXXX.YYYYY.fits\n"); 38 return FALSE; 39 } 40 int status = HostTableReloadResults (argv[1], VERBOSE); 41 return status; 29 42 } 30 43
Note:
See TracChangeset
for help on using the changeset viewer.
