Changeset 875 for trunk/guitools/smbmon
- Timestamp:
- Mar 4, 2015, 10:28:25 AM (10 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r805 r875 25 25 SMM0020I: Produktinformation 26 26 SMM0021I: Die Leute hinter Samba Server fr eComStation (OS/2) 27 SMM0022 ?:27 SMM0022I: TDB Dateien prfen 28 28 SMM0023?: 29 29 SMM0024I: Einstellungen -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r805 r875 25 25 SMM0020I: About 26 26 SMM0021I: Samba Server for eComStation is brought to you by 27 SMM0022I: 27 SMM0022I: Check TDB files 28 28 SMM0023I: 29 29 SMM0024I: Settings -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r805 r875 25 25 SMM0020I: Acerca de 26 26 SMM0021I: Servidor Samba para eComStation proporcionado por 27 SMM0022I: 27 SMM0022I: Comprobar los archivos TDB 28 28 SMM0023I: 29 29 SMM0024I: Preferencias -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r805 r875 27 27 SMM0020I: · propos de 28 28 SMM0021I: Serveur Samba pour eComStation vous est propos par 29 SMM0022I: 29 SMM0022I: Vrifier fichiers TDB 30 30 SMM0023I: 31 31 SMM0024I: Paramtres -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r805 r875 23 23 SMM0018I: vervakare 24 24 SMM0019I: Ntverket 25 SMM0020I: 26 SMM0021 ?:27 SMM0022 ?:25 SMM0020I: Om 26 SMM0021I: Samba Server fr eComStation kommer fran 27 SMM0022I: Kontrollera TDB filer 28 28 SMM0023?: 29 29 SMM0024I: Instllningar -
trunk/guitools/smbmon/smbmon.rc
r805 r875 1 1 icon 1 .\rc\icons\smbmon.ico 2 bitmap 2 .\rc\icons\ netlabs.bmp2 bitmap 2 .\rc\icons\bww_bw.bmp 3 3 icon 40 .\rc\icons\start_samba2.ico 4 4 icon 41 .\rc\icons\samba_stop2.ico … … 11 11 icon 48 .\rc\icons\pid.ico 12 12 icon 49 .\rc\icons\zombie.ico 13 icon 50 .\rc\icons\tag.ico 14 icon 51 .\rc\icons\err.ico 13 15 BITMAP 111 .\rc\throbber\eBall_01.bmp 14 16 BITMAP 112 .\rc\throbber\eBall_02.bmp -
trunk/guitools/smbmon/smbmon.vrp
r869 r875 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,4083,11226,7372,6589 10 VRXWindow: __VREToolsWindow,1,2156,1494,54 68,166911 VRXWindow: __VREWindListWindow,1,964,11708, 3132,315010 VRXWindow: __VREToolsWindow,1,2156,1494,5477,1663 11 VRXWindow: __VREWindListWindow,1,964,11708,5372,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_FILES,1 15 UserWindow: SW_CHKTDB,1 -
trunk/guitools/smbmon/smbmon.vrx
r869 r875 97 97 */ 98 98 return 99 /*:VRX _ChkTDB 100 */ 101 _ChkTDB: 102 103 ok = SysFileTree(etc'\samba\lock\*.TDB',tdb.,'FO') 104 say etc'\samba\lock\*.TDB 'tdb.0 105 106 error = 0 107 ok = VRMethod("CN_CHKTDB", "RemoveRecord", "ALL") 108 109 do I = 1 to tdb.0 110 RecHandle = VRMethod("CN_CHKTDB", "Addrecord") 111 TDBFile =left(filespec('N',tdb.I), 22) 112 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBFilesFH, TDBFile, ChkTDBIconFH, "$50" ) 113 address cmd '@tdbtool 'tdb.I' check 2>'tdb.I'.err 1>'tdb.I'.out' 114 out = linein(tdb.I'.out') 115 ok = stream(tdb.I'.out','c','close') 116 say out 117 if pos('integrity is OK',out) > 0 then do /* integrity is ok */ 118 ok = SysFileDelete(tdb.I'.err') 119 ok = SysFileDelete(tdb.I'.out') 120 out = left(out,length(out)-1) 121 TDBRecords = substr(out, pos("and has", out) + 7,) 122 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBStatusFH, TDBRecords ) 123 124 address cmd '@tdbbackup -s.bak 'tdb.I' 2>NUL 1>NUL' 125 end 126 else do /* tdb error */ 127 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBIconFH, "$51" ) 128 error = 1 129 count = 0 130 out = "" 131 do while lines(tdb.I'.err') > 0 & count < 5 132 errline = linein(tdb.I'.err') 133 select 134 /* skip unnecessary lines of log */ 135 when pos("bww ",errline) > 0 then iterate 136 when pos("fcntl",errline) > 0 then iterate 137 otherwise do 138 out = out||errline'. ' 139 count = count + 1 140 end 141 end 142 end 143 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBStatusFH, out ) 144 ok = stream(tdb.I'.err','c','close') 145 end 146 147 /* 148 call charout , left(filespec('N',tdb.I), 22) 149 address cmd '@tdbtool 'tdb.I' check 2>'tdb.I'.err 1>'tdb.I'.out' 150 out = linein(tdb.I'.out') 151 ok = stream(tdb.I'.out','c','close') 152 say out 153 if pos('integrity is OK',out) = 0 then do 154 call beep 880, 20 155 address cmd '@tdbbackup -s.bak -v 'tdb.I' 2>NUL 1>NUL' 156 error = 1 157 count = 0 158 do while lines(tdb.I'.err') > 0 & count < 5 159 errline = linein(tdb.I'.err') 160 select 161 /* skip unnecessary lines of log */ 162 when pos("bww ",errline) > 0 then iterate 163 when pos("fcntl",errline) > 0 then iterate 164 otherwise do 165 say right(copies(' ',22)'Cause: 'errline'!',min(length(errline)+22,79)) 166 count = count + 1 167 end 168 end 169 end 170 ok = stream(tdb.I'.err','c','close') 171 end 172 else do 173 ok = SysFileDelete(tdb.I'.err') 174 ok = SysFileDelete(tdb.I'.out') 175 address cmd '@tdbbackup -s.bak 'tdb.I' 2>NUL 1>NUL' 176 end */ 177 end 178 179 return 180 99 181 /*:VRX _ColumnShow 100 182 */ … … 165 247 DStatusFH = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(146) ) 166 248 DPidsFH = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(130) ) 249 250 /* chktdb */ 251 ChkTDBFilesFH = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(134) ) 252 ChkTDBIconFH = VRMethod( "CN_CHKTDB", "AddField", "Icon", NLVGetMessage(146) ) 253 ChkTDBStatusFH= VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(151) ) 167 254 168 255 /* Browse tree */ … … 1162 1249 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(17)" ") 1163 1250 1251 w = VRLoad( "TDL_1", VRWindowPath(), "SW_CHKTDB" ) 1252 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(22)" ") 1253 1164 1254 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SETTINGS" ) 1165 1255 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(24)" ") 1256 1257 1166 1258 IF options.!debug == 1 THEN SAY time()' _TabbedDialogSetup done' 1167 1259 return … … 1260 1352 WPSStartStop = VRGet("CB_WPSStartStop","set") 1261 1353 say 'WPSStartStop = "'WPSStartStop'"' 1354 return 1355 1356 /*:VRX CN_CHKTDB_ContextMenu 1357 */ 1358 CN_CHKTDB_ContextMenu: 1359 if VRInfo("Top") < 400 & VRGet("CN_Files", "View") = "Detail" then call _ColumnsMenu "CN_Files" 1360 else do 1361 RH = VRInfo("Record") 1362 OH = VRInfo("Object") 1363 if RH <> "" then do 1364 ok = VRMethod( "Contextmenu_Files", "Popup", , , "", "PositionOnItem" ) 1365 end 1366 end 1262 1367 return 1263 1368 … … 1841 1946 ok = VRSet("PB_Cancel", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 1)) 1842 1947 1948 ok = VRset("GB_CHKTDB","Top", margin ) 1949 ok = VRset("GB_CHKTDB","Left", marginx2) 1950 ok = VRset("GB_CHKTDB","Width", pane_width - 760) 1951 ok = VRset("GB_CHKTDB","Height", pane_height- 1020) 1952 ok = VRset("CN_CHKTDB","Top", margin) 1953 ok = VRset("CN_CHKTDB","Left", margin) 1954 ok = VRset("CN_CHKTDB","Width", pane_width - 760 - marginx2 ) 1955 ok = VRset("CN_CHKTDB","Height", pane_height- 1020- marginx2 ) 1956 1843 1957 ok = VRset("GB_USERS","Top", margin ) 1844 1958 ok = VRset("GB_USERS","Left", marginx2) … … 2043 2157 2044 2158 say " CurrentPageNr = "CurrentPageNr 2045 2046 if CurrentPageNr = 2 then do 2047 ok = VRset("Pict_Throbber", "Visible", 1) 2048 ok = VRset("TM_Throbber", "Enabled", 1) 2049 call _RefreshTree 2050 end 2051 else call _Refresh 2159 select 2160 when CurrentPageNr = 2 then do 2161 ok = VRset("Pict_Throbber", "Visible", 1) 2162 ok = VRset("TM_Throbber", "Enabled", 1) 2163 call _RefreshTree 2164 end 2165 when CurrentPageNr = 6 then do 2166 call _ChkTDB 2167 end 2168 otherwise call _Refresh 2169 end 2052 2170 IF options.!debug == 1 then say time()' PB_Refresh_Click() done' 2053 2171 return … … 2224 2342 return 2225 2343 2344 /*:VRX SW_CHKTDB_Close 2345 */ 2346 SW_CHKTDB_Close: 2347 call SW_CHKTDB_Fini 2348 return 2349 2350 /*:VRX SW_CHKTDB_Create 2351 */ 2352 SW_CHKTDB_Create: 2353 call SW_CHKTDB_Init 2354 return 2355 2356 /*:VRX SW_CHKTDB_Fini 2357 */ 2358 SW_CHKTDB_Fini: 2359 window = VRInfo( "Window" ) 2360 call VRDestroy window 2361 drop window 2362 return 2363 /*:VRX SW_CHKTDB_Init 2364 */ 2365 SW_CHKTDB_Init: 2366 window = VRInfo( "Object" ) 2367 if( \VRIsChildOf( window, "Notebook" ) ) then do 2368 call VRMethod window, "CenterWindow" 2369 call VRSet window, "Visible", 1 2370 call VRMethod window, "Activate" 2371 end 2372 drop window 2373 return 2374 2226 2375 /*:VRX SW_DAEMONS_Close 2227 2376 */ … … 2499 2648 nop 2500 2649 end 2501 when page = 6 then do /* Settings */ 2650 when page = 6 then do /* chkTDB */ 2651 say "ChkTDB" 2652 call _ChkTDB 2653 end 2654 when page = 7 then do /* Settings */ 2502 2655 nop 2503 2656 end
Note:
See TracChangeset
for help on using the changeset viewer.