- Timestamp:
- Dec 10, 2012, 12:07:22 PM (14 years ago)
- Location:
- branches/sc_branches/pantasks_condor
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from trunk/Ohana/src/opihi ) (1 prop)
-
pantasks/controller_status.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/pantasks_condor
- Property svn:mergeinfo set to
-
branches/sc_branches/pantasks_condor/pantasks/controller_status.c
r23530 r34783 1 # include "pantasks.h" 1 #include "pantasks.h" 2 #include "ipp_condor.h" 2 3 3 4 int controller_status (int argc, char **argv) { 4 5 #ifndef IPP_CONDOR 5 6 int status; 6 7 char command[1024]; 7 8 IOBuffer buffer; 8 9 9 if (argc != 1) { 10 10 gprint (GP_ERR, "USAGE: controller status\n"); 11 11 return (FALSE); 12 12 } 13 14 13 /* check if controller is running */ 15 14 status = CheckControllerStatus (); … … 18 17 return (TRUE); 19 18 } 20 21 22 19 sprintf (command, "status"); 23 20 InitIOBuffer (&buffer, 0x100); 24 25 21 status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer); 26 27 22 if (status) { 28 23 gwrite (buffer.buffer, 1, buffer.Nbuffer, GP_LOG); … … 31 26 } 32 27 FreeIOBuffer (&buffer); 28 #else 29 gprint(GP_LOG, strprintf("%s\n", get_hosts_requirements())); 30 gprint(GP_LOG, strprintf("%s\n", get_host_status("ippc63.ifa.hawaii.edu"))); 31 32 #endif 33 33 return (TRUE); 34 34 }
Note:
See TracChangeset
for help on using the changeset viewer.
