Changeset 33912 for branches/eam_branches/ipp-20120405/Ohana
- Timestamp:
- May 25, 2012, 10:07:50 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120405/Ohana/src/opihi
- Files:
-
- 2 edited
-
dvo/dvo_host_utils.c (modified) (6 diffs)
-
include/dvoshell.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120405/Ohana/src/opihi/dvo/dvo_host_utils.c
r33911 r33912 6 6 # define DVO_MAX_PATH 1024 7 7 8 int HostTableLaunchJobs (HostTable *table, char *basecmd, char *options ) {8 int HostTableLaunchJobs (HostTable *table, char *basecmd, char *options, int VERBOSE) { 9 9 10 10 char uniquer[12]; … … 13 13 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 14 14 15 int top_status = TRUE; 15 16 int i; 16 17 for (i = 0; i < table->Nhosts; i++) { … … 38 39 free (commandFile); 39 40 40 if ( DEBUG || PARALLEL_MANUAL) fprintf (stderr, "command: %s\n", command);41 if (VERBOSE) gprint (GP_ERR, "command: %s\n", command); 41 42 42 43 if (PARALLEL_MANUAL) { … … 47 48 int status = system (command); 48 49 if (status) { 49 fprintf (stderr, "ERROR running relphot_client\n");50 exit (2);50 gprint (GP_ERR, "ERROR running relphot_client\n"); 51 top_status = FALSE; 51 52 } 52 53 } else { … … 55 56 int pid = rconnect ("ssh", table->hosts[i].hostname, command, table->hosts[i].stdio, &errorInfo, FALSE); 56 57 if (!pid) { 57 if (DEBUG) fprintf (stderr, "failure to start %s (error %d)\n", table->hosts[i].hostname, errorInfo); 58 exit (1); 58 gprint (GP_ERR, "failure to start %s (error %d)\n", table->hosts[i].hostname, errorInfo); 59 top_status = FALSE; 60 continue; 59 61 } 60 62 table->hosts[i].pid = pid; // save for future reference 61 63 } 62 64 } 63 return TRUE;65 return top_status; 64 66 } 65 67 … … 126 128 127 129 // launch this command remotely 128 HostTableLaunchJobs (table, basecmd, options );130 HostTableLaunchJobs (table, basecmd, options, VERBOSE); 129 131 free (options); 130 132 free (basecmd); -
branches/eam_branches/ipp-20120405/Ohana/src/opihi/include/dvoshell.h
r33911 r33912 99 99 dbValue dbExtractImages PROTO((Image *image, off_t Nimage, off_t N, dbField *field)); 100 100 101 int HostTableLaunchJobs PROTO((HostTable *table, char *basecmd, char *options ));101 int HostTableLaunchJobs PROTO((HostTable *table, char *basecmd, char *options, int VERBOSE)); 102 102 int HostTableParallelOps PROTO((int argc, char **argv, char *ResultFile, int Nelements, int VERBOSE)); 103 103 int HostTableReloadResults PROTO((char *uniquer, int VERBOSE));
Note:
See TracChangeset
for help on using the changeset viewer.
