Changeset 10101 for fact/FADctrl/FADctrl.cc
- Timestamp:
- 01/13/11 11:56:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADctrl.cc
r10099 r10101 5 5 #include <stdio.h> 6 6 #include <readline/history.h> 7 #include <string> 7 8 8 9 #include "FAD.h" 9 10 10 const char READLINE_HIST_FILE[] = "/tmp/.history.FADctrl";11 using namespace std; 11 12 13 const string READLINE_HIST_FILE = string(getenv("HOME"))+"/.history_FADctrl"; 12 14 void OpenOtherSockets(); 13 15 … … 22 24 23 25 // Load history buffer 24 read_history(READLINE_HIST_FILE );26 read_history(READLINE_HIST_FILE.c_str()); 25 27 26 28 system("clear"); … … 73 75 DimClient::sendCommand(SERVER_NAME"/Command", "dwrite on"); 74 76 DimClient::sendCommand(SERVER_NAME"/Command", "roi all 1024"); 75 sleep (1);76 77 77 //EmptySockets(SocketDescriptor, 8, 750000L);78 78 M.PrintMessage("Finished initalizing all boards\n"); 79 79 … … 100 100 101 101 // Save history buffer 102 int Ret = write_history(READLINE_HIST_FILE );103 if (Ret != 0 ) printf("Error writing history file to '%s' (%s)\n", READLINE_HIST_FILE , strerror(Ret));102 int Ret = write_history(READLINE_HIST_FILE.c_str()); 103 if (Ret != 0 ) printf("Error writing history file to '%s' (%s)\n", READLINE_HIST_FILE.c_str(), strerror(Ret)); 104 104 105 105 // Terminate thread for other sockets
Note:
See TracChangeset
for help on using the changeset viewer.